Color library XML

This file format is used by the first iteration of the Color converter and library.

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: category nodes

<?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: color nodes

Color item

A color is defined by a node called color.

Required children:

  • name: name of the color item

  • format: color format

    • 1: sRGB 8-bit

    • 2: sRGB

    • 3: linear RGB

  • R: red value

  • G: green value

  • B: blue value

Optional children:

  • None

Full example

Last updated