Go to the source code of this file.
getBrightness get brightness of a color
- Parameters
-
string | $color | 24 bit RGB color as hex digit (i.e. 'FFFFFF') |
- Returns
- int relative brightness of color 1-255001
Definition at line 58 of file index.php.
References normalizeColor().
normalizeColor
- Parameters
-
string | $color | 24 bit RGB color as hex digit (i.e. 'FFFFFF') |
- Returns
- array of ints, RGB color values keyed as 'red', 'green' and 'blue'
Definition at line 74 of file index.php.
Referenced by getBrightness().
$bg = $xoops->getModuleConfig('qrcode_bgcolor', 'qrcode') |
$contrastStatus = 'accept' |
$fg = $xoops->getModuleConfig('qrcode_fgcolor', 'qrcode') |