standard.settings.colorButton elementDropDown elementHtml elementScale elementText elementTooltip element

getElement(id).settings.color("color")

Makes any text in the element appear in the specified color. The "color" string follows CSS conventions (most common names such as “red”, “blue”, … are valid)

Note: if you want to change the background color of an element (say, a Canvas element) use .settings.css("background", color) where color is the name of a color (e.g. "green")

Example:

newText("warnning", "NOTE: this text is a warning!")
    .settings.bold()
    .settings.italic()
    .settings.color("red")
    .print()

Prints a text in boldface, italic and red.