Color library XML
The format is a simple .xml file, containing a strict data structure.
Root
The root node of the xml structure is a single node with no attributes, called color. This node contains the categories as a list of child nodes.
Required children:
None
Optional children:
categories:
categorynodes
<?xml ... xml header ... ?>
<color>
...
</color>Category
A category is defined by a node called category. It has a required child node called name which holds the name of the category. The colors in the category are held in a list of children nodes.
Required children:
name: name of the category
Optional children:
colors:
colornodes
Color item
A color is defined by a node called color.
Required children:
name: name of the color itemformat: color format1: sRGB 8-bit
2: sRGB
3: linear RGB
R: red valueG: green valueB: blue value
Optional children:
None
Full example
Last updated