Change Pen Color by () (block)

The Change Pen Color by ()block is a Pen block and a Stack block. The block increments or decrements the pen's color by the specified value. The color value holds 200 different values of colors (0 to 199, inclusive), so color 200 is the same as color 0. In other words, changing the pen color by 200 color will not change the appearance of the pen.

Example Uses

In projects that use the pen, the pen must have a certain color (no transparency allowed) — this block can change it.

Some common uses for the Change Pen Color by () block are:

Iterating through pen color values while the sprite is moved to create colorful art

forever
if <((timer) mod (1)) = [0]> then
change pen color by (1)

Varying pen colors for an art program

forever
change pen color by (loudness)
wait (2) secs

In projects that "draw" objects with the pen, changing the color of the object(s)