Archive.png This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.
Change Pen Shade by ()
2.0 Change Pen Shade by ().png
Category Pen
Type Stack
Removed in 3.0

The Change Pen Shade by () block is a Pen block and a stack block. The block changes the pen's shade by the specified amount. In Scratch 3.0, this block was replaced by Change Pen () by ().

Example Uses

In art projects, the pen that the viewer controls might want to be pressed harder or lighter — this block does the job.

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

  • Repeatedly changing the pen shade while the pen is being used to create art with different shades
forever
    change pen shade by (1)
end
  • Changing pen shades for an art program
ask [Change shade by what amount?] and wait
change pen shade by (answer)
  • In projects that draw objects with the pen, changing the shade of the object(s)
repeat (200)
    move (1) steps
    change pen shade by (1)
end

Workaround

This block cannot be replicated with other Scratch blocks, due to the fact that there is no block that holds the pen shade.

However, if the block existed, the Change Pen Shade by () block could be replicated with the following code:

set pen shade to ((pen shade) + (amount))

Nevertheless, that is how Scratch itself does it.

See Also