m
(fixed grammar)
Line 6: Line 6:
 
| type      = [[Stack Block|Stack]]
 
| type      = [[Stack Block|Stack]]
 
| default    = 10
 
| default    = 10
}}The '''Change Pen Color by ()''' [[Blocks|block]] is a [[Pen Blocks|Pen block]] and a [[Stack Block|Stack block]]. The block changes the [[Pen|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.
+
}}The '''Change Pen Color by ()''' [[Blocks|block]] is a [[Pen Blocks|Pen block]] and a [[Stack Block|Stack block]]. The block increments, or decrements the [[Pen|pen's]] color by the specified value. The color value holds 199 different values of colors, so the 200th 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 will remain unchanged.
 
==Workaround==
 
==Workaround==
 
This block cannot be replicated with other [[Scratch]] blocks, due to the fact that there is no block that holds the pen color.
 
This block cannot be replicated with other [[Scratch]] blocks, due to the fact that there is no block that holds the pen color.
Line 20: Line 20:
  
 
Some common uses for the '''Change Pen Color by ()''' block:
 
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
+
*Iterating through the pen color values while the pen is being used to create colorful art
*Changing pen colors for an art program
+
*Varying pen colors for an art program
*In projects that draw objects with the pen, changing the color of the object(s)
+
*In projects that "draw" objects with the pen, changing the color of the object(s)
 
==See Also==
 
==See Also==
 
*[[Set Pen Color to () (number block)|Set Pen Color to ()]]
 
*[[Set Pen Color to () (number block)|Set Pen Color to ()]]
 
{{Pen Blocks}}
 
{{Pen Blocks}}
 
[[Category:Pen Blocks]]
 
[[Category:Pen Blocks]]

Revision as of 18:17, 29 December 2011

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 increments, or decrements the pen's color by the specified value. The color value holds 199 different values of colors, so the 200th 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 will remain unchanged.

Workaround

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.

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:

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

See Also

Document stub.png This page no longer has any use and needs to be deleted. The user who added this template does not have permission to delete the page. (Date?)
Reason for deletion: Template:Pen Extension should be moved here as this is the standard name
Admins and Experienced Wikians: remember to check the page history, what links here, patrol all unpatrolled edits, then delete this page.
#REDIRECT Template:Pen Extension