The Converter module help to convert a lot of different things (for now the class is still light but it will be upgraded in the future).



Module Details


Variables (Members):


Name

Type

Default Value

Description

rgbToString

Function

null

function rgbToString.



Functions:



Name

Arguments

Return

Description

rgbToString

  • String: css - CSS command for a RGB modification

Integer Array:

  • 1: Red
  • 2: Green
  • 3: Blue
  • 4 (Optional): Alpha

Transform a RGB CSS command to an array of integer defining the colors value.


Note: you can put RGBA CSS command.



Non-Module Functions:


Name

Arguments

Return

Description

@Non-Module HexToArray

  • String: Hex - Hexadecimal of a color.

Integer[3]:

  • 1: Red
  • 2: Green
  • 3: Blue

Transform an Hexadecimal color to an Integer Array.

@Non-Module ArrayToHex

  • Integer[3]:
    • 1: Red
    • 2: Green
    • 3: Blue

String

Transform an Integer Array to a Hexadecimal color.



Created with the Personal Edition of HelpNDoc: Produce electronic books easily