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 200 possible hues, with values from 0 to 199. 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, or a color can be chosen from a color picker. The color picker contains 141 hues, with 99 shades of each. On the right is a grayscale color chooser, which only has gray (an equal amount of each base color).
A sprite's pen color can be altered with these blocks:
- The two versions of the Set Pen Color to () block — These blocks will set the color to a chosen color/numerical value
- Change Pen Color by () — This block will change the numerical value of the pen color
Another block is wanted by many Scratchers, a reporter block called "pen color" that reports the numerical value of the color. Some also want a third value for the pen, along with color and shade, called saturation, allowing for gray colors to be made.