data Color : TypeMake a custom color. All components are clamped to the range [0..255].
MkRGBA : Int -> Int -> Int -> Int -> ColorRGBA color.
@ r Red component.
@ g Green component.
@ b Blue component.
@ a Alpha component.
MkRGB : Int -> Int -> Int -> ColorRGB color.
@ r Red component.
@ g Green component.
@ b Blue component.
Eq ColorrgbaOfColor : Color -> (Int, (Int, (Int, Int)))Take the RGBA components of a color.
@ color Color.
addColors : Color -> Color -> ColorAdd RGB components of a color component-wise, then normalise them to the highest resulting one.
The alpha components are averaged.
@ c1 First color.
@ c2 Second color.
transparent : Colorwhite : Colorblack : Colorred : Colorgreen : Colorblue : Coloryellow : Colormagenta : Colorcyan : Color