DefineColor
Colors defined with DefineColors can be referenced later by their name.
Child elements: (none)
Parent elements: AtPageCreation, AtPageShipout, Case, Contents, ForAll, Include, Layout, Loop, Otherwise, Record, SavePages, Until, While
Blue part with RGB
Cyan part with CMYK
The name of the spot color if model is »spotcolor«. The name must match the required color name, such as »PANTONE 116 C«.
Green part with RGB / gray part when using the model gray
Black part with CMYK
Magenta part with CMYK
Color model to be used for the color. Currently “rgb”, “cmyk”, “gray” and “spotcolor” are supported.
cmyk: |
CMYK (cyan, magenta, yellow, key/black) |
rgb: |
RGB (red, green, blue) |
gray: |
Gray (0=Black) |
spotcolor: |
Use a PANTONE or HKS color. |
The name of the color to be defined.
Enable overprint for this color.
yes: |
Enable overprint for this color. |
no: |
Disable overprint for this color (default). |
Red part with RGB
Hex value of the color, such as #FA5 or #FFAA55.
Yellow part with CMYK
<DefineColor name="black" model="cmyk" c="0" m="0" y="0" k="100"/> <DefineColor name="white" model="rgb" r="100" g="100" b="100"/>
The CSS level 3 colors are predefined in RGB-space. See http://www.w3.org/TR/css3-color/ for the definitions. That means you can use common colors such as red or goldenrod without using DefineColor.
The predefined colors are: aliceblue, black, orange, rebeccapurple, antiquewhite, aqua, aquamarine, azure, beige, bisque, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, darkblue, darkcyan, darkgoldenrod, darkgray, darkgreen, darkgrey, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, green, greenyellow, grey, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgreen, lightgrey, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow and yellowgreen