brushColor

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the brushColor to {<colorName> | <RGBColor>}
Summary

Specifies the color used to paint and to fill shapes in an image.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the brushColor to "blue"
set the brushColor to "#FFCC99"
set the brushColor to 127,127,255
Values
NameTypeDescription
Value

The brushColor is a color reference. The colorName is any standard color name.

The RGBColor consists of three comma-separated integers between zero and 255, specifying the level of each of red, green, and blue; or an HTML-style color consisting of a hash mark (#) followed by three hexadecimal numbers, one for each of red, green, and blue.

By default, the brushColor is black.

RelatedKeyword: image, rectangle, roundRect, polygon, spray can, bucket, brush, oval, regular
Glossary: property, hexadecimal, paint tool, integer, color reference
Property: backgroundColor, filled, lineSize, penColor, brushPattern
Description

Use the brushColor property to change the color used with the bucket, spray can, and brush paint tool|paint tools, and for the interior of filled shapes.

If the brushPattern has been set since the last time the brushColor was set, the pattern is used instead of the color specified by brushColor. In other words, the last-set property takes priority.

Tagsui