Use in Scripts
Pen color can be used in animation, drawing, and much more. To change it, you raise or lower the value. There are 100 possible integer hues, with values from 0 to 99, but decimal values can be used to specify the color more precisely. It starts and ends at red, with the general order of a rainbow.
- Main article: Color Picker
The pen color can be set either to a numerical value representing a color using the Set Pen () to () block, or a color can be chosen from a color picker using the Set Pen Color to () block. The latter method can also be used to set the pen brightness and saturation.
A sprite's pen color can be altered with these blocks:
set pen color to [#ff0000]— This block will set the pen color, brightness and saturation.
set pen (color v) to ()— Sets the pen color to a numerical value.
change pen (color v) by ()— Changes the numerical value of the color.