YOU ARE VIEWING DOCUMENTATION FOR ioL v.1. Click here for documentation for older v.0.9x versions of ioL.
ioL

Programming manual (doc.iol.science)



color = ...

Applies a foreground color to the markup element.

Specifying a color value for this field

The color field accepts a color value expressed either as a text keyword or a numerical color value represented in hexadecimal notation.

A value of null may be used to represent the absence of a specified color. This is useful for resetting an element to its default appearance, or for constructing a tag with a color field without specifying an initial color.

Color keywords

Examples of valid colors in text notation are {black}, {white}, {blue}, {yellow}, and {orange}. ioL accepts any of the color keywords defined by the SVG 1.1 standard specification.

Hexadecimal colors

You can specify any color in the full 24-bit color spectrum by specifying the color's numerical value directly. Color values are 6-digit hexadecimal values, where each pair of digits ranges from x00 to xFF and refers to the color's red, green and blue component respectively.

Examples:

How to convert from web colors to ioL color values

Sample color palettes available online often provide colours in hexadecimal notation. However, please note that ioL requires hexadecimal digits to be written in uppercase with a x (not #) prefix. While the web notation is slightly different, the values themselves are the same. See the table below for examples on how to convert web colors into ioL colors.

Web color notationEquivalent ioL notation
#94c2bf x94C2BF
#ffffff xFFFFFF
#93a1a1 x93A1A1
Remember that these are numbers, not strings. Do not use braces { } around hexadecimal values.