Module Graphv_webgl.Color
Operations on colors.
val rgbaf : r:float -> g:float -> b:float -> a:float -> tAssumes all values are in the 0-1 range
val rgbf : r:float -> g:float -> b:float -> tAssumes all values are in the 0-1 range
val rgba : r:int -> g:int -> b:int -> a:int -> tAssumes all values are in the 0-255 range
val rgb : r:int -> g:int -> b:int -> tAssumes all values are in the 0-255 range
val white : tr=255 g=255 b=255 a=255
val black : tr=0 g=0 b=0 a=255
val transparent : tr=0 g=0 b=0 a=0
val hsl : h:float -> s:float -> l:float -> tCreate a color from HSL, alpha = 255
0 <= h <= 10 <= s <= 10 <= l <= 1
val hsla : h:float -> s:float -> l:float -> a:int -> tCreate a color from HSL with alpha
0 <= h <= 10 <= s <= 10 <= l <= 10 <= a <= 255