Home
last modified time | relevance | path

Searched refs:green_ (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_color.cpp30green_ = static_cast<int16_t>((rgba & 0x00FF0000) >> 16); // 0x00ff0000 green mask, 16 green shift in RSColor()
40 green_ = green; in RSColor()
46 return red_ == rhs.red_ && green_ == rhs.green_ && blue_ == rhs.blue_ && alpha_ == rhs.alpha_; in operator ==()
51 …return (std::abs(red_ - other.red_) <= threshold) && (std::abs(green_ - other.green_) <= 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_ - rhs.alpha_); in operator -()
73 green_ = round(green_ * scale); in operator *=()
91 … ((static_cast<uint32_t>(std::clamp<int16_t>(green_, 0, UINT8_MAX))) << 16) | // 16 green shift in AsRgbaInt()
104 … ((static_cast<uint32_t>(std::clamp<int16_t>(green_, 0, UINT8_MAX))) << 8) | // 8 green shift in AsArgbInt()
144 return green_; in GetGreen()
[all …]
/ohos5.0/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) {} in Color()
36 green_ = (rgba >> 8) & 0xff; in Color()
47 return green_; in GetGreen()
67 green_ = g; in SetGreen()
87 return static_cast<scalar>(green_) / RGB_MAX; in GetGreenF()
116 green_ = static_cast<uint8_t>(std::clamp(g, 0.0f, 1.0f) * RGB_MAX); in SetGreenF()
133 green_ = g; in SetRgb()
141 green_ = static_cast<uint32_t>(round(std::clamp(g, 0.0f, 1.0f) * RGB_MAX)); in SetRgbF()
149 green_ = Color::ColorQuadGetG(c); in SetColorQuad()
155 …return c1.alpha_ == c2.alpha_ && c1.red_ == c2.red_ && c1.green_ == c2.green_ && c1.blue_ == c2.bl… in operator ==()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_color.h50 : red_(red), green_(green), blue_(blue), alpha_(alpha) in TestingColor()
53 : red_((rgba >> SIXTEEN) & COLOR_DEFAULT), green_((rgba >> EIGHT) & COLOR_DEFAULT), in TestingColor()
60 … return red_ == rhs.red_ && green_ == rhs.green_ && blue_ == rhs.blue_ && alpha_ == rhs.alpha_;
75 return green_; in GetGreen()
89 green_ = (rgba >> EIGHT) & 0xff; in Color()
96 (static_cast<uint32_t>((std::clamp<int16_t>(green_, 0, UINT8_MAX)) << 8)) | in GetValue()
115 uint32_t green_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dcolor.h200 green_ = static_cast<int16_t>((argb & 0x0000FF00) >> 8); in LinearColor()
204 … : alpha_(color.GetAlpha()), red_(color.GetRed()), green_(color.GetGreen()), blue_(color.GetBlue()) in LinearColor()
207 : alpha_(alpha), red_(red), green_(green), blue_(blue) in LinearColor()
240 return alpha_ == color.GetAlpha() && red_ == color.GetRed() && green_ == color.GetGreen() &&
251 return green_; in GetGreen()
267 (static_cast<uint32_t>((std::clamp<int16_t>(green_, 0, UINT8_MAX)) << 8)) | in GetValue()
278 static_cast<uint8_t>(std::clamp<int16_t>(green_, 0, UINT8_MAX)), in BlendOpacity()
287 static_cast<uint8_t>(std::clamp<int16_t>(green_, 0, UINT8_MAX)), in ToColor()
294 int16_t green_; variable
/ohos5.0/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) {} in RSColor()
75 int16_t green_ : 16; member
/ohos5.0/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_ & 0xf… in CastToColorQuad()
157 uint32_t green_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_node/src/
H A Drender_node.ts193 private green_: number;
201 this.green_ = ColorMetrics.clamp(green);
206 return (this.alpha_ << 24) + (this.red_ << 16) + (this.green_ << 8) + this.blue_;
324 return `rgba(${this.red_}, ${this.green_}, ${this.blue_}, ${this.alpha_ / MAX_CHANNEL_VALUE})`;
330 return this.green_;
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_button/
H A Dui_test_button.cpp517 : uiView_(uiView), red_(red), green_(green), blue_(blue) in TestBtnOnClickChangeColorListener()
528 color.green = green_; in OnClick()
538 uint16_t green_; member in OHOS::TestBtnOnClickChangeColorListener
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsXNode.js1575 this.green_ = ColorMetrics.clamp(green);
1583 return (this.alpha_ << 24) + (this.red_ << 16) + (this.green_ << 8) + this.blue_;
1705 … return `rgba(${this.red_}, ${this.green_}, ${this.blue_}, ${this.alpha_ / MAX_CHANNEL_VALUE})`;
1711 return this.green_;