\CssColorChart
Synopsis
class CssColorChart
{
- // members
- public array $ignoreFiles = ;
- public array $replaceColoursArray = ;
- // methods
- public String listColors()
- public String replaceColours()
- protected void findCssFiles()
- protected void findColors()
- protected Null sortMatches()
- protected Null addToMatchResults()
- protected String displayColors()
- public String cssPrepare()
- public String rgb2hex()
- public Array(red hex2rgb()
- public Array(hue rgb2hsv()
- public Array(red hsv2rgb()
- protected Array genColorNames()
Members
public
- $ignoreFiles
- $replaceColoursArray
Methods
protected
- addToMatchResults() — Add array to $this->matchResults
- displayColors() — Return HTML code of $this->matchResults
- findColors()
- findCssFiles()
- genColorNames() — Return an array of colour names and their hexidecimal values
- sortMatches() — Sort $this->matchResults by HSV values
public
- cssPrepare() — Clean CSS code, strip comments & format one style per line
- hex2rgb() — Convert hexidecimal string to RGB array
- hsv2rgb() — Convert HSV array to RGB array
- listColors() — Find, parse, and return output
- replaceColours() — Find, parse, and return output
- rgb2hex() — Convert RGB array to hexidecimal string
- rgb2hsv() — Convert RGB array to HSV array