FSharpGephiStreamer


Colors

Namespace: FSharpGephiStreamer

Module to create and manipulate ARGB colors

Nested types and modules

TypeDescription
Color

Represents an ARGB (alpha, red, green, blue) color

ColorComponent

Color component ARGB

ModuleDescription
Table

Predefined colors

Functions and values

Function or valueDescription
fromArgb a r g b
Signature: a:int -> r:int -> g:int -> b:int -> Color

Creates a Color structure from the four ARGB components (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 component 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 component value of the hue-saturation-brightness (HSB) format, in degrees, for this Color structure.

getSaturation col
Signature: col:Color -> float

Gets the saturation component value of the hue-saturation-brightness (HSB) format for this Color structure.

getValueFromCC cc
Signature: cc:ColorComponent -> byte

returns the value hold by a color component

maxRGB c
Signature: c:Color -> ColorComponent

returns the maximum value of the R, G, and B components of a color

minRGB c
Signature: c:Color -> ColorComponent

returns the minimum value of the R, G, and B components of a color

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)

Fork me on GitHub