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 [js].settings.css(“background”, color)[/js] where color
is the name of a color (e.g. "green"
)
Example:
[js highlight=”4″ try=”true”]
newText(“warnning”, “NOTE: this text is a warning!”)
.settings.bold()
.settings.italic()
.settings.color(“red”)
.print()
[/js]
Prints a text in boldface, italic and red.