Discuss Scratch
- ttman12
-
69 posts
Pen Eraser Block
eraser down
eraser up
set eraser size to []
change eraser size by []
This type of pen block will erase any pen marks individualy without clearing all pen marks alltogether.
Can be useful for drawings projects.
ex:
when green flag clicked
forever
if <mouse down?> then
eraser down
else
eraser up
end
ex 2:
when green flag clicked
forever
set eraser size to (erasersize)
- stickfiregames
-
1000+ posts
Pen Eraser Block
I think it would be easier to have a single block:
set pen to [pen v] :: penYou wouldn't have to track the size of both the pen and eraser separately, and it would avoid the situation of both being down at the same time.
set pen to [eraser v] :: pen
Last edited by stickfiregames (Sept. 25, 2014 16:00:18)
- MushroomMan99
-
100+ posts
Pen Eraser Block
I support. You could just set the pen colour to whatever the background colour is but that would be complicated for backgrounds with more than one colour.
- tongqiu
-
1 post
Pen Eraser Block
I think for backdrops more than one color, you can change the pen's color when you get to the different color(for example, in front there is a green, so you change the pen color to green).
- JavierR100
-
500+ posts
Pen Eraser Block
Support, theres an workarround for it, but only for only 1 color backdrop:
set pen color to (Backdrop color :: grey)
- TheBurger82
-
100+ posts
Pen Eraser Block
110% support.
Maybe in this form:
Maybe in this form:
I think it would be easier to have a single block:set pen to [pen v] :: penYou wouldn't have to track the size of both the pen and eraser separately, and it would avoid the situation of both being down at the same time.
set pen to [eraser v] :: pen
Last edited by TheBurger82 (Dec. 18, 2018 01:52:11)
- TheBurger82
-
100+ posts
Pen Eraser Block
It hasn't. Look at the complete list I'm 70% sure this has been deniedhere.
- rdococ
-
1000+ posts
Pen Eraser Block
Support. Backgrounds can be incredibly complicated, which would make erasing pen manually extremely complicated as well, especially if the background changes often.
These blocks, I think, would be the most intuitive as they mirror the “pen down” and “pen up” blocks.
Alternatively, you could have a block to set the pen mode:
These blocks, I think, would be the most intuitive as they mirror the “pen down” and “pen up” blocks.
eraser down :: pen
eraser up :: pen
Alternatively, you could have a block to set the pen mode:
set pen mode to [normal v] :: pen
set pen mode to [erase v] :: pen
- minor-edit
-
500+ posts
Pen Eraser Block
The mode would be the easiest.
Then the pen and the stamp would be erasers.
Turn it off and they are back to normal.
The feature is being considered.
Saved projects should revert the setting to off automatically to avoid pen and stamp appearing not to work in a newly opened project.
turn erase mode [on v] :: pen
Then the pen and the stamp would be erasers.
Turn it off and they are back to normal.
The feature is being considered.
Saved projects should revert the setting to off automatically to avoid pen and stamp appearing not to work in a newly opened project.
- minor-edit
-
500+ posts
Pen Eraser Block
set pen [color v] to () ::pen
becomes
set pen [erase mode v] to [on v]::pen
Then a new block isn't needed.
- chrdagos
-
500+ posts
Pen Eraser Block
support, since the “erase all” block just won't cut it. plus, any workaround would be absurdly complex, assuming there IS a workaround.eraser downeraser upset eraser size to []change eraser size by []
This type of pen block will erase any pen marks individualy without clearing all pen marks alltogether.
Can be useful for drawings projects.
ex:when green flag clicked
forever
if <mouse down?> then
eraser down
else
eraser up
end
ex 2:when green flag clicked
forever
set eraser size to (erasersize)
but I think that the blocks would look like this:
eraser up :: pen
eraser down :: pen
set eraser size to [] :: pen
change eraser size by [] :: pen
- minor-edit
-
500+ posts
Pen Eraser Block
Within the existing block
or
set pen [mode v] to [stamp and draw v] :: pen
set pen [mode v] to [erase only v] :: pen
or
set pen [eraser v] to [off v] :: pen
set pen [eraser v] to [on v] :: pen
- BubbleBread
-
17 posts
Pen Eraser Block
I think this would be a good idea, as it could make pen more efficient and easy to use, but the blocks should probably look like this:
I like this concept of the blocks, but instead of saying,
But overall support.
I think it would be easier to have a single block:set pen to [pen v] :: penYou wouldn't have to track the size of both the pen and eraser separately, and it would avoid the situation of both being down at the same time.
set pen to [eraser v] :: pen
I like this concept of the blocks, but instead of saying,
set pen to [pen v] :: penIt should probably say
set pen to [eraser v] :: pen
set type to [pen v] :: penIt just makes more sense to me this way, idk, saying set pen to pen kinda sounds weird.
set type to [eraser v] :: pen
But overall support.
- minor-edit
-
500+ posts
Pen Eraser Block
Too much interface can be a negative. So, I have a tip:
So, do
set pen size to () // negative pen sizes erase
So, do
set pen size to (-1) // now it is an eraser, size 1
Could it be a mode instead? It should probably sayset type to [pen v] :: pen
set mode to [eraser v] :: pen
It does. saying set pen to pen kinda sounds weird.
Me too! But overall support.
- Dreche
-
100+ posts
Pen Eraser Block
I would say, there should be another possibility to do that which allows much more:
set pen mode to [replace v]::pen // Replaces the colour at the positions to draw instead of adding above
set pen mode to [add on top v]::pen // default, behaves like it is at the moment
set pen mode to [mix v]::pen // Mixes the colours equally. The transparency specifies the weight (reversed)
- mlcreater
-
1000+ posts
Pen Eraser Block
What? I would say, there should be another possibility to do that which allows much more:set pen mode to [replace v]::pen // Replaces the colour at the positions to draw instead of adding above
set pen mode to [add on top v]::pen // default, behaves like it is at the moment
set pen mode to [mix v]::pen // Mixes the colours equally. The transparency specifies the weight (reversed)
But there is already a “rotation style”.Could it be a mode instead? It should probably sayset type to [pen v] :: penset mode to [eraser v] :: pen
I think just “mode”, even in a pen block, would be confusing.
I think it would have to be “set pen mode”.
- MeIzAwezomeDede
-
1000+ posts
Pen Eraser Block
Support! It would be very useful in pen projects (obvs)
Last edited by MeIzAwezomeDede (Oct. 20, 2020 14:35:31)