This package provides a static list of RAL Classic Colors.
The object returns an array which contains the RAL Number, Range Index, English Name, German Name and a compatible Hex Color Code.
- PHP
Packagist Entry https://packagist.org/packages/pixelbrackets/ral-color-chart/
https://gitlab.com/pixelbrackets/ral-color-chart/
See tests/demo.php
- Get an array with all RAL Classic Colors
Or as static method call
$colorChart = new \Pixelbrackets\RalColorChart\RalColorChart(); $colors = $colorChart->getColors();
$colors = \Pixelbrackets\RalColorChart\RalColorChart::getColors();
- Get an array with all RAL Classic Ranges
$ranges = \Pixelbrackets\RalColorChart\RalColorChart::getRanges();
- Get an array with all RAL Classic Colors grouped by range index
$groupedColors = \Pixelbrackets\RalColorChart\RalColorChart::getColorsGroupedByRange();
- Get an array of a single RAL Classic Color
$color = \Pixelbrackets\RalColorChart\RalColorChart::getColor('RAL 2010');
GNU General Public License version 2 or later
The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html.
Dan Kleine ([email protected] / @pixelbrackets)
See ./CHANGELOG.md
This script is Open Source, so please use, patch, extend or fork it.