Stk.ColorSourceColors.
A color is a int32, with bytes representing red, green, blue and alpha (opacity).
to_int8s color returns (red, green, blue, alpha) components of color.
of_rgba r g b a returns a color from the given components.
of_rgba_0_1 r g b a returns a color from the given components as floats. Each component must be between 0. and 1. and is multiplicated by 255 to get the value on one byte for this component. Out of bounds values are corrected to be at least 0 and at most 255.
sdl_color_of_int32 n creates a Tsdl.Sdl.color.
Returns a color from a hexadecimal string representation. With each character being 0..9 or a|A..f|F, accepted forms are:
"rgb", mapped to (rr,gg,bb,FF),"rgba", mapped to (rr,gg,bb,aa),"rrggbb", mapped to (rr,gg,bb,FF),s which can be parsed by Int32.of_string ("0x"^s).Raises Failure if the representation is invalid.
The transparent color.
Transparent color as (r,g,b,a) bytes.
Transparent SDL color.
Thes named colors corresponds to the SVG color specification.
Ocf.wrapper for a color.