XOOPS  2.6.0
index.php File Reference

Go to the source code of this file.

Namespaces

 qrcode
 

Functions

 getBrightness ($color)
 
 normalizeColor ($color)
 

Variables

 $admin_page = new \Xoops\Module\Admin()
 
 $bg = $xoops->getModuleConfig('qrcode_bgcolor', 'qrcode')
 
 $contrastMessage = _MI_QRCODE_CONTRAST_OK
 
 $contrastStatus = 'accept'
 
 $fg = $xoops->getModuleConfig('qrcode_fgcolor', 'qrcode')
 
 $xoops = Xoops::getInstance()
 

Function Documentation

getBrightness (   $color)

getBrightness get brightness of a color

Parameters
string$color24 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().

Here is the call graph for this function:

normalizeColor (   $color)

normalizeColor

Parameters
string$color24 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().

Here is the caller graph for this function:

Variable Documentation

$admin_page = new \Xoops\Module\Admin()

Definition at line 27 of file index.php.

$bg = $xoops->getModuleConfig('qrcode_bgcolor', 'qrcode')

Definition at line 30 of file index.php.

$contrastMessage = _MI_QRCODE_CONTRAST_OK

Definition at line 36 of file index.php.

$contrastStatus = 'accept'

Definition at line 37 of file index.php.

$fg = $xoops->getModuleConfig('qrcode_fgcolor', 'qrcode')

Definition at line 33 of file index.php.

$xoops = Xoops::getInstance()

Definition at line 23 of file index.php.