|This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.|
|Set Pen Color to ()|
The Set Pen Color to () block is a Pen block and stack block. The block sets the pen's color to the hue chosen with the argument. A 200 pen color value is the same color as a 0 pen color value; in other words, if you change the pen color by 200, the color still looks the same. In Scratch 3.0, this block was replaced by Set Pen () to ().
As this block can change the pen's color, it is mainly used when the pen is drawing something and a different color is desired.
Some common uses for the Set Pen Color to () block are:
- Choosing the chosen color in paint projects
set pen color to (13) repeat until <not <mouse down?>> go to [mouse-pointer v] end
- Choosing a random color
set pen color to (pick random (0) to (200))
- Set Pen Color to () (color input block)
- Change Pen Color by () (block)
- Creating a Color Palette
- Pen Color (value)