Home
last modified time | relevance | path

Searched refs:blue_ (Results 1 - 8 of 8) sorted by relevance

/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_color.cpp31 blue_ = static_cast<int16_t>((rgba & 0x0000FF00) >> 8); // 0x0000ff00 blue mask, 8 blue shift
41 blue_ = blue;
46 return red_ == rhs.red_ && green_ == rhs.green_ && blue_ == rhs.blue_ && alpha_ == rhs.alpha_; in operator ==()
52 (std::abs(blue_ - other.blue_) <= threshold) && (std::abs(alpha_ - other.alpha_) <= threshold); in IsNearEqual()
57 return RSColor(red_ + rhs.red_, green_ + rhs.green_, blue_ + rhs.blue_, alpha_ + rhs.alpha_); in operator +()
62 return RSColor(red_ - rhs.red_, green_ - rhs.green_, blue_ - rhs.blue_, alpha in operator -()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/
H A Dcolor.cpp24 Color::Color() noexcept : alpha_(RGB_MAX), red_(0), green_(0), blue_(0) {}
26 Color::Color(const Color& c) noexcept : alpha_(c.GetAlpha()), red_(c.GetRed()), green_(c.GetGreen()), blue_(c.GetBlue()) in blue_() function
29 Color::Color(uint32_t r, uint32_t g, uint32_t b, uint32_t a) noexcept : alpha_(a), red_(r), green_(g), blue_(b) {} in blue_() function
37 blue_ = (rgba >> 0) & 0xff;
52 return blue_; in GetBlue()
72 blue_ = b; in SetBlue()
92 return static_cast<scalar>(blue_) / RGB_MAX; in GetBlueF()
121 blue_ = static_cast<uint8_t>(std::clamp(b, 0.0f, 1.0f) * RGB_MAX); in SetBlueF()
134 blue_ = b; in SetRgb()
142 blue_ in SetRgbF()
[all...]
/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_color.h50 : red_(red), green_(green), blue_(blue), alpha_(alpha) in TestingColor()
54 blue_((rgba >> ZERO) & COLOR_DEFAULT), alpha_(rgba >> TWENTY_FOUR) in TestingColor()
60 return red_ == rhs.red_ && green_ == rhs.green_ && blue_ == rhs.blue_ && alpha_ == rhs.alpha_; in operator ==()
80 return blue_; in GetBlue()
90 blue_ = (rgba >> ZERO) & 0xff; in Color()
95 return (static_cast<uint32_t>(std::clamp<int16_t>(blue_, 0, UINT8_MAX))) | in GetValue()
116 uint32_t blue_; member in OHOS::Ace::Testing::TestingColor
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dcolor.h202 blue_ = static_cast<int16_t>(argb & 0xFF); in LinearColor()
205 : alpha_(color.GetAlpha()), red_(color.GetRed()), green_(color.GetGreen()), blue_(color.GetBlue()) in LinearColor()
208 : alpha_(alpha), red_(red), green_(green), blue_(blue) in LinearColor()
242 blue_ == color.GetBlue(); in operator ==()
257 return blue_; in GetBlue()
267 return (static_cast<uint32_t>(std::clamp<int16_t>(blue_, 0, UINT8_MAX))) | in GetValue()
280 static_cast<uint8_t>(std::clamp<int16_t>(blue_, 0, UINT8_MAX))); in BlendOpacity()
289 static_cast<uint8_t>(std::clamp<int16_t>(blue_, 0, UINT8_MAX))); in ToColor()
296 int16_t blue_; member in OHOS::Ace::Color::LinearColor
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/
H A Drs_color.h29 RSColor() noexcept : alpha_(0), blue_(0), green_(0), red_(0) {}
74 int16_t blue_ : 16; member
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/draw/
H A Dcolor.h146 return ((alpha_ & 0xffu) << 24) | ((red_ & 0xffu) << 16) | ((green_ & 0xffu) << 8) | ((blue_ & 0xffu) << 0); in CastToColorQuad()
158 uint32_t blue_; member in OHOS::Rosen::Drawing::Color
/foundation/arkui/ui_lite/test/uitest/test_button/
H A Dui_test_button.cpp517 : uiView_(uiView), red_(red), green_(green), blue_(blue) in TestBtnOnClickChangeColorListener()
529 color.blue = blue_;
539 uint16_t blue_; member in OHOS::TestBtnOnClickChangeColorListener
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsXNode.js1603 this.blue_ = ColorMetrics.clamp(blue);
1610 return (this.alpha_ << 24) + (this.red_ << 16) + (this.green_ << 8) + this.blue_;
1732 return `rgba(${this.red_}, ${this.green_}, ${this.blue_}, ${this.alpha_ / MAX_CHANNEL_VALUE})`;
1741 return this.blue_;

Completed in 7 milliseconds