darken(); // hexa: couleur plus foncée $strLightened = $objColor->lighten(); // hexa: couleur plus pâle $arrGradient = $objColor->makeGradient(15); //array: couleurs pâle et foncée pour faire un dégradé $objColorLightened = new Color($strLightened); // objbet: couleur plus pâle $arrRGB = $objColorLightened->getRgb(); //array: rouge, vert, bleu ?>
| Function | Value | Color |
|---|---|---|
| IsLight | isLight() ? 'true' : 'false'; ?> | - |
| IsDark | isDark() ? 'true' : 'false'; ?> | - |
| Original | ||
| Darken | darken(); ?> | |
| Lighten | lighten(); ?> | |
| Complementary | complementary(); ?> | |
| Get RGB |
|
|
| Make gradient |
|