User`s guide
12 Classes – Alphabetical List
12-38
mlreportgen.dom.Color class
Package: mlreportgen.dom
Color of document element
Description
Specifies the color of a document element.
Construction
colorObj = Color() creates a black color object.
colorObj = Color(colorName) creates a color object based on the specified CSS color
name.
colorObj = Color(rgbValue) creates a color object using the hexidecimal RGB color
value.
Input Arguments
colorName — Name of color
string
Name of a color. The name must be a CSS color name. See http://www.crockford.com/
wrrrld/color.html.
rgbValue — Hexidecimal RGB (red, green, blue) color value
string
A string using the following RGB format: #RRGGBB. Use # as the first character and two-
digit hexidecimal numbers for each for the red, green, and blue values. For example,
'#0000ff' specifies blue.
Output Arguments
colorObj — Color for document element
mlreportgen.dom.Color object