| name | description |
|---|
| name | description |
|---|
| name | description |
|---|
| name | description |
|---|
Types and macros for colors 8-bit type for an alpha value. 0xFF is 100% opaque, 0x00 is 100% transparent. 32 bit ARGB color value, not premultiplied. The color components are always in a known order. This is different from SkPMColor, which has its bytes in a configuration dependent order, to match the format of kBGRA_8888_SkColorType bitmaps. SkColor is the type used to specify colors in SkPaint and in gradients.
Return a SkColor value from 8 bit component values
incomplete
incomplete
Legacy aliases.
incomplete
incomplete
Return a SkColor value from 8 bit component values, with an implied value of 0xFF for alpha (fully opaque)
incomplete
return the alpha byte from a SkColor value
incomplete
return the red byte from a SkColor value
incomplete
return the green byte from a SkColor value
incomplete
return the blue byte from a SkColor value
incomplete
incomplete
incomplete
common colors transparent SkAlpha value
incomplete
opaque SkAlpha value
incomplete
transparent SkColor value
incomplete
black SkColor value
incomplete
dark gray SkColor value
incomplete
gray SkColor value
incomplete
light gray SkColor value
incomplete
white SkColor value
incomplete
red SkColor value
incomplete
green SkColor value
incomplete
blue SkColor value
incomplete
yellow SkColor value
incomplete
cyan SkColor value
incomplete
magenta SkColor value
incomplete
Hue represents an angle, in degrees, on a color wheel. Hue has a positive value modulo 360, where zero degrees is red.
Convert RGB components to HSV. hsv[0] is Hue [0 .. 360) hsv[1] is Saturation [0...1] hsv[2] is Value [0...1]
incomplete
incomplete
Convert the argb color to its HSV components. hsv[0] represents Hue, and is assigned a value from zero to less than 360. hsv[1] is Saturation [0...1] hsv[2] is Value [0...1]
incomplete
incomplete
Convert HSV components to an ARGB color. The alpha component is passed through unchanged. hsv[0] represents Hue, an angle from zero to less than 360. hsv[1] represents Saturation, and varies from zero to one. hsv[2] represents Value, and varies from zero to one.
If hsv values are out of range, they are pinned.
the resulting argb color
incomplete
Convert HSV components to an ARGB color. The alpha component set to 0xFF. hsv[0] represents Hue, an angle from zero to less than 360. hsv[1] represents Saturation, and varies from zero to one. hsv[2] represents Value, and varies from zero to one.
If hsv values are out of range, they are pinned.
the resulting argb color
incomplete
32 bit ARGB color value, premultiplied. The byte order for this value is configuration dependent, matching the format of kBGRA_8888_SkColorType bitmaps. This is different from SkColor, which is nonpremultiplied, and is always in the same byte order.
Return a SkPMColor value from unpremultiplied 8 bit component values
incomplete
incomplete
Return a SkPMColor value from a SkColor value. This is done by multiplying the color components by the color's alpha, and by arranging the bytes in a configuration dependent order, to match the format of kBGRA_8888_SkColorType bitmaps.
incomplete
incomplete