FSharpGephiStreamer


Hex

Namespace: FSharpGephiStreamer

Functions and types for color coding, decoding and conversions of hex colors

Functions and values

Function or valueDescription
decode s
Signature: s:string -> byte []
Attributes:
[<CompiledName("Decode")>]

Decodes a color byte array from a hex string

CompiledName: Decode

encode prefix color
Signature: prefix:string -> color:byte array -> string
Attributes:
[<CompiledName("Encode")>]

Encodes a color byte array to a hex string with the given prefix

CompiledName: Encode

fromHexDigit c
Signature: c:char -> int
Attributes:
[<CompiledName("FromHexDigit")>]

Converts a hex based character to an integer (e.g. '1' -> 1, 'B' -> 11)

CompiledName: FromHexDigit

toHexDigit n
Signature: n:int -> char
Attributes:
[<CompiledName("ToHexDigit")>]

Converts integer to hex based character (e.g. 1 -> '1', 11 -> 'B')

CompiledName: ToHexDigit

Fork me on GitHub