Revision as of 07:01, 24 June 2010 by Jonathanpb (talk | contribs) (Created the Change Pen Color by () block article.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Change Pen Color by ()
Change Pen Color by ().png
Category Pen
Type Stack
The Change Pen Color by () block is a Pen block and a Stack block. The block changes the pen's color by the specified amount. 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.

Behind the Scenes

This block cannot be replicated with other Scratch blocks, due to the fact that there is no block that holds the pen color. However, if the block existed, the Change Pen Color by () block could be replicated with the following code:

File:Workaround for the Change Pen Color by () block.png

Nevertheless, that is how Scratch itself does it.

Common Uses

In projects that use the pen, the pen must have a certain color - this block can change it.

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

  • Repeatedly changing the pen color while the pen is being used to create colorful art
  • Changing pen colors for an art program
  • In projects that draw objects with the pen, changing the color of the object(s)