This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. For information on the feature that replaced this one, see Set Pen () to () (block). |
Set Pen Shade to () | |
set pen shade to () | |
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 ().
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
forever set pen shade to (pick random (0) to (100)) end
- 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)) end