color
This module provides a dictionary of around 900 color names.
Import
Import the dictionary to your project via the require
tag:
require: color/colorEn.sc
module = sys.zb-common
After importing the file, the following becomes available:
- the
$Colors
named entity dictionary; - the
$Color
named entity for processing color names with patterns.
Value format
Field | Type | Description |
---|---|---|
name | String | Color name |
hex | String | Hex code |
red | Number | Red intensity |
green | Number | Green intensity |
blue | Number | Blue intensity |
Entry examples
221;Gargoyle Gas;{"name": "Gargoyle Gas", "hex": "#FFDF46", "red": 255, "green": 223, "blue": 70}
806;Teal;{"name": "Teal", "hex": "#008080", "red": 0, "green": 128, "blue": 128}