Pen
Shared by Jonathanpb
blockspec:
('pen size' #r #penSize)
no code needed
What it does:
Reports the current pen size.
Shared by zorket
blockspec:
('pen down?' #b #penDown)
no code needed
What it does:
Reports whether the pen for that sprite is down or not.
Shared by Jwosty
blockspec:
('pen shade' #r #penShade)
code:
penShade
^ penShade
What it does:
Reports the shade of the sprite's pen.
Shared by Jwosty
blockspec:
('pen color' #r #penHue)
code
penHue
^ penHue
What it does:
Reports the pen color.
Shared by Hardmath123 and made with Scramble
Blockspec:
('switch the up/down value of the pen' #- #switchPenValue)
Code:
switchPenValue
"Made using Scramble by Hardmath123"
| t1 |
t1 _ self penDown.
t1 ifTrue: [self putPenUp.].
t1 ifFalse: [self putPenDown.].
What this block does:
If the pen is down, put it up, and if it is up, put it down.
Shared by Hardmath123
Blockspec:
('Stamp me at x: %n y: %n ' #- #stampAt:stampAt:)
Code:
stampAt: i1 stampAt: i2
"Made with Scramble by Hardmath123"
| t2 t1 |
t1_ self xpos.
t2_ self ypos.
self gotoX: i1 y:i2.
self stampCostume.
self gotoX: t1 y:t2.
What this block sprites:
Stamps the sprite at the specified position.
^ Back to Scratch Blocks
^ Back to Contents
█ █ █ █ █ █ █ █
Last edited by YourLocalBlockLib (2011-07-20 14:59:23)
Offline