A 32bit color, commonly used by things like vertex buffers.
The functionality on this is purposely left minimal so we're encouraged to use the regular
struct.
| Hex |
String representation of the form "#RRGGBB[AA]". |
| RawInt |
Integer representation of the form 0xAABBGGRR as used by native code. |
| Rgb |
String representation in the form of <see href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb">rgb</see>( r, g, b )
css function notation. |
| Rgba |
String representation in the form of <see href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgba">rgba</see>( r, g, b, a )
css function notation. |
| RgbaInt |
Integer representation of the form 0xRRGGBBAA. |
| RgbInt |
Integer representation of the form 0xRRGGBB. |
| FromRgb |
Converts an integer of the form 0xRRGGBB into the color #RRGGBB with 100% alpha. |
| FromRgba |
Converts an integer of the form 0xRRGGBBAA into the color #RRGGBBAA. |
| Lerp |
Performs linear interpolation between two colors. |
| Max |
Returns a new color with each component being the maximum of the 2 given colors. |
| Min |
Returns a new color with each component being the minimum of the 2 given colors. |
| Parse |
Parse a string to a color, in format "255 255 255 255" or "255,255,255". Alpha is optional. |
| Read |
Read a color from binary reader. |