fromArgb a r g b
Signature: a:int -> r:int -> g:int -> b:int -> Color
|
Creates a Color structure from the four ARGB component (alpha, red, green, and blue) values.
|
fromHex(s)
Signature: s:string -> Color
|
Gets color from hex representataion (FFFFFF) or (0xFFFFFF)
|
fromRgb r g b
Signature: r:int -> g:int -> b:int -> Color
|
Creates a Color structure from the specified color values (red, green, and blue).
The alpha value is implicitly 255 (fully opaque).
|
fromWebColor(s)
Signature: s:string -> Color
|
Gets color from web color (#FFFFFF)
|
getHue(c)
Signature: c:Color -> float
|
Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this Color structure.
|
getSaturation(col)
Signature: col:Color -> float
|
Gets the hue-saturation-brightness (HSB) saturation value for this Color structure.
|
getValueFromCC(cc)
Signature: cc:ColorComponent -> byte
|
|
maxRGB(c)
Signature: c:Color -> ColorComponent
|
|
minRGB(c)
Signature: c:Color -> ColorComponent
|
|
toArgb(c)
Signature: c:Color -> int * int * int * int
|
Gets the 32-bit ARGB value of this Color structure.
|
toHex prefix c
Signature: prefix:bool -> c:Color -> string
|
Gets the hex representataion (FFFFFF) of a color (with valid prefix "0xFFFFFF")
|
toString(c)
Signature: c:Color -> string
|
Converts this Color structure to a human-readable string.
|
toWebColor(c)
Signature: c:Color -> string
|
Gets the web color representataion (#FFFFFF)
|