|
RSI helpers
0.1
RSI helpers
|
Static Public Member Functions | |
| static | intToRgb ($value) |
| Convert integer color to triplet array. More... | |
| static | hexToRgb ($value) |
| Convert hexadecimal color to triplet array. More... | |
| static | toRgb ($value) |
| Parse color to triplet array. More... | |
| static | toInt ($value) |
| Parse color to integer. More... | |
| static | toHex ($value) |
| Parse color to hexadecimal. More... | |
| static | grey ($value) |
| Grey value of a color. More... | |
| static | tint ($value, $tint) |
| Lighten (tint) or darken (shade) a color. More... | |
| static | palette ($count=12) |
| Create a color palette (rainbow). More... | |
Static Protected Member Functions | |
| static | decToHex ($value) |
| Format a color value to two digit hexadecimal. More... | |
Color helpers.
Default color notation is a triplet array with byte values for red, green, and blue.
|
staticprotected |
|
static |
|
static |
|
static |
|
static |
|
static |
Lighten (tint) or darken (shade) a color.
| mixed | $value | Color as hexadecimal string (3 or 6 digits, with or without leading #), integer, or triplet array. |
| float | $tint | Tint (0..1 makes a color lighter, with 1 = white; -1..0 makes a color darker, with -1 = black). |
|
static |
|
static |
|
static |