dmc-kolor Documentation

Table of Contents

{toc:style=disc|indent=20px|minLevel=2|exclude=Table of Contents|printable=false}

Caveat

There is an issue with display.newLine as it doesn't allow overriding like all of the other display objects (i'm going to assume this is a bug).

For this object you will need to use setFillRGB instead.

Using alpha channel in named color files

Named color files can also include the alpha channel

Here are some examples of a named color file, in each of RGB, HEX, and HDR. Note that the color definition can also include a value for the alpha channel.

{code:language=none|title=HEX Color File} { "Alice Blue": "F0F8FF", "Antique White": "FAEBD7", "Aqua": "00FFFF", "Aquamarine": "7FFFD4", "Azure": "F0FFF" }

with alpha channel { "Alice Blue": [ "F0F8FF", 0.5 ], "Antique White": [ "FAEBD7", 1.0 ], "Aqua": "00FFFF", "Aquamarine": "7FFFD4", "Azure": "F0FFF" }


{code:language=none|title=RGB Color File}
{
    "Alice Blue": [ 240, 248, 255 ],
    "Antique White": [ 250, 235, 215 ],
    "Aqua": [ 0, 255, 255 ],
    "Aquamarine": [ 127, 255, 212 ],
    "Azure": [ 240, 255, 255 ]
}
with alpha channel

{
    "Alice Blue": [ 240, 248, 255, 0.5 ],
    "Antique White": [ 250, 235, 215, 1.0 ],
    "Aqua": [ 0, 255, 255 ],
    "Aquamarine": [ 127, 255, 212 ],
    "Azure": [ 240, 255, 255 ]
}

{code:language=none|title=HDR Color File} { "Alice Blue": [ 0.94117647058824, 0.97254901960784, 1 ], "Antique White": [ 0.98039215686275, 0.92156862745098, 0.84313725490196 ], "Aqua": [ 0, 1, 1 ], "Aquamarine": [ 0.49803921568627, 1, 0.83137254901961 ], "Azure": [ 0.94117647058824, 1, 1 ] } ```

References

Here are some of the pertinent discussions for issues with the changes in color handing: