pixelbrackets/ral-color-chart

This package provides a static list of RAL Classic Colors


Keywords
color, list, ral
License
GPL-2.0-or-later

Documentation

RAL Color Chart

Packagist

This package provides a static table of RAL Classic Colors.

The object may retun an array which contains the RAL Number, Range Index, English Name, German Name and a compatible Hex Color Code.

Screenshot

Requirements

  • PHP

Installation

Packagist Entry https://packagist.org/packages/pixelbrackets/ral-color-chart/

Source

https://gitlab.com/pixelbrackets/ral-color-chart/

Usage

  1. Get an array with all RAL Classic Colors
    $colorChart = new \Pixelbrackets\RalColorChart\RalColorChart();
    $colors = $colorChart->getList();
    
  2. Get an array with all RAL Classic Ranges
    $colorChart = new \Pixelbrackets\RalColorChart\RalColorChart();
    $ranges = $colorChart->getRangeList();
    
  3. Get an array with all RAL Classic Colors grouped by range index
    $colorChart = new \Pixelbrackets\RalColorChart\RalColorChart();
    $groupedColors = $colorChart->getGroupedList();
    

License

GNU General Public License version 2 or later

The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html.

Author

Dan Untenzu (mail@pixelbrackets.de / @pixelbrackets)

Changelog

See ./CHANGELOG.md

Contribution

This script is Open Source, so please use, patch, extend or fork it.