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.
Set Pen Shade to ()
2.0 Set Pen Shade to ().png
Category Pen
Type Stack
Removed in 3.0

The Set Pen Shade to () block is a Pen block and a stack block. The block sets the pen's shade to the specified amount. A 200 pen shade value is the same shade as a 0 pen shade value. In other words, if the pen shade is changed by 200, the shade still looks the same. In Scratch 3.0 the block was replaced by Set Pen () to ().

The possible shades you can get using the Set Pen Shade to ().png block without changing the color, here 0.

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 Set Pen Shade to () block:

  • Repeatedly choosing the pen shade while the pen is being used to create art with different shades
    set pen shade to (pick random (0) to (100))
  • Setting pen shades for an art program
ask [Shade?] and wait
set pen shade to (answer)
  • In projects that draw objects with the pen, choosing the shade of the object(s)
repeat (200)
    move (1) steps
    set pen shade to (pick random (0) to (100))

See Also