"backCol"

The attribute can be used to set the background color of a shape.

Synopsis

setValue(string shape, "backCol", string);

getValue(string shape, "backCol", string);

shape.backCol(string);

Parameter

Parameter Description
string Color String

Description

The attribute can be used to set the background color of a shape. By setting an empty string the color is changed to the original color. Please be aware that the background color of the panel cannot be reset with an empty string as the base color is not stored within the panel file.

It is also possible to set blinking colors but it must be considered that these colors might cause a high CPU load depending on the size and content of the panel.

Example

Sets the background color of the current panel to a blinking color switching between yellow and black.

main(mapping event)
{
  self.backCol = "yellow_black";
}

Assignment

All graphic objects