SkColor4f members may be read and written directly without using a member function.
Each component is independent of the others; fA Alpha is not Premultiplied with fG green, fB blue, or fR red.
Values smaller than zero or larger than one are allowed. Values out of range may be used with Blend Mode so that the final component is in range.
SkColor4f operators inline class member functions with arithmetic equivalents.
SkColor4f member functions read and modify the structure properties.
Compares Color4f with other, and returns true if all components are equivalent.
true if Color4f equals other
colorRed == colorNamedRed
operator!=(const SkColor4f& other) const
Compares Color4f with other, and returns true if all components are not equivalent.
true if Color4f is not equal to other
colorGray != colorNamedGray
operator==(const SkColor4f& other) const
Returns Color4f components as a read-only array.
components as read-only array
red=0.0578054 green=0.246201 blue=0.603827 alpha=0.533333 [0]=0.0578054 [1]=0.246201 [2]=0.603827 [3]=0.533333
SkColor4f
Returns Color4f components as a writable array.
components as writable array
red=0.0578054 green=0.246201 blue=0.603827 alpha=0.533333 [0]=0.0578054 [1]=0.246201 [2]=0.603827 [3]=1
SkColor4f
Constructs and returns Color4f with each component pinned from zero to one.
Color4f with valid components
pin FromColor
Converts to closest Color4f.
Color4f equivalent
red=0.0742136 green=0.130136 blue=0.318547 alpha=0.168627 red=77 green=101 blue=153 alpha=43
toSkColor
Converts to closest SkColor.
closest Color
red=75 green=101 blue=153 alpha=43 red=0.0703601 green=0.130136 blue=0.318547 alpha=0.168627
FromColor
Returns Color4f with all components in the range from zero to one.
Color4f with valid components
Pin
Internal use only.
Premultiplied color
Internal use only.