penColor

Specifies the color used for drawing with the paint tools.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the penColor to {colorName | RGBColor}

# Examples

set the penColor to "blue"

set the penColor to 255,255,255 -- white

# Description

Use the penColor property to change the color used with the pencil, line, and curve paint tools, and for the borders of shapes.

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

# Tags

ui,

# See

- **keyword:** pencil, curve, line - **property:** penPattern, brushColor - **command:** choose - **glossary:** property, hexadecimal, paint tool, integer, color reference