Set Pen Color to ()
2.0 Set Pen Color to () (number).png
Category Pen
Type Stack

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.

All of the possible colors accessible with the Set Pen Color to () block (without changing the shade.)

Example Uses

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]
  • Choosing random color
set pen color to (pick random (0) to (200))

See Also