Colors - meduzapat/LEDSpicer GitHub Wiki
The colors file is a configuration file used to define the different colors that the program will use to colorize elements on the layout.
Why use a colors file instead of specifying colors directly, like red, #F03244, or rgb(11,22,33)?
Because each system may render colors with different intensities. What appears as red on my system might look pink on another system. By defining colors in a colors file, we ensure that "red" looks red on any system, and we can adjust it as needed.
One important thing to note is that any animation using the color names from the colors file will only be compatible with that specific file.
Therefore, if you create a custom colors file, any animations created will only be compatible with that file.
The color files are located inside /usr/shared/ledspicer/.
LEDSpicer uses some color names to denote special colors or functionality. The list of pseudo colors is:
-
On: This color indicates that the element will be on. -
Off: This color indicates that the element will be off. -
Random: This color means that the element color will be decided randomly based on the other colors in the list of random picks inside theledspicer.conf.
The root node, like every other configuration file, is <LEDSpicer></LEDSpicer> with the following mandatory parameters: version, type, and format.
-
version: Leave it always as 1.0. -
type: Colors. -
format: Leave it as hex. (I do not support other formats right now.)
That is all for the color configuration file. Altogether, it will look like this (a sample from basicColors.xml file):
<?xml version="1.0" encoding="UTF-8"?>
<LEDSpicer
version="1.0"
type="Colors"
format="hex"
>
<color name="White" color="FFFFFF" />
<color name="LightGray" color="D3D3D3" />
<color name="Gray" color="808080" />
<color name="DimGray" color="696969" />
<color name="AlmostBlack" color="050505" />
<color name="Black" color="000000" />
<color name="Red" color="FF0000" />
<color name="LightRed" color="F08080" />
<color name="DarkRed" color="8B0000" />
<color name="VeryDarkRed" color="0B0000" />
<color name="Green" color="00FF00" />
<color name="LightGreen" color="90EE90" />
<color name="DarkGreen" color="006400" />
<color name="VeryDarkGreen" color="000600" />
<color name="Blue" color="0000FF" />
<color name="LightBlue" color="ADD8E6" />
<color name="DarkBlue" color="00008B" />
<color name="VeryDarkBlue" color="00000B" />
<color name="Yellow" color="FFFF00" />
<color name="LightYellow" color="FFFFE0" />
<color name="Olive" color="808000" />
<color name="Gold" color="FFD700" />
<color name="VeryDarkYellow" color="0b0600" />
<color name="Magenta" color="FF00FF" />
<color name="Violet" color="EE82EE" />
<color name="DarkMagenta" color="8B008B" />
<color name="Pink" color="FFC0CB" />
<color name="HotPink" color="FF69B4" />
<color name="VeryDarkMagenta" color="0B000B" />
<color name="Cyan" color="00FFFF" />
<color name="LightCyan" color="E0FFFF" />
<color name="DarkCyan" color="008B8B" />
<color name="VeryDarkCyan" color="000B0B" />
</LEDSpicer>