Discuss Scratch

ttman12
Scratcher
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)
OmnipotentPotato
Scratcher
1000+ posts

Pen Eraser Block

I'm 70% sure this has been denied
stickfiregames
Scratcher
1000+ posts

Pen Eraser Block

I think it would be easier to have a single block:
set pen to [pen v] :: pen

set pen to [eraser v] :: pen
You 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.

Last edited by stickfiregames (Sept. 25, 2014 16:00:18)

MushroomMan99
Scratcher
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
Scratcher
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
Scratcher
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
Scratcher
100+ posts

Pen Eraser Block

110% support.

Maybe in this form:

stickfiregames wrote:

I think it would be easier to have a single block:
set pen to [pen v] :: pen

set pen to [eraser v] :: pen
You 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.

Last edited by TheBurger82 (Dec. 18, 2018 01:52:11)

TheBurger82
Scratcher
100+ posts

Pen Eraser Block

OmnipotentPotato wrote:

I'm 70% sure this has been denied
It hasn't. Look at the complete list here.
rdococ
Scratcher
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.

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
Scratcher
500+ posts

Pen Eraser Block

The mode would be the easiest.

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
Scratcher
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
Scratcher
500+ posts

Pen Eraser Block

ttman12 wrote:

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)
support, since the “erase all” block just won't cut it. plus, any workaround would be absurdly complex, assuming there IS a workaround.
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
Scratcher
500+ posts

Pen Eraser Block

Within the existing block

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
chrdagos
Scratcher
500+ posts

Pen Eraser Block

do the bump-bump-bump-bump-bump!
BubbleBread
Scratcher
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:

stickfiregames wrote:

I think it would be easier to have a single block:
set pen to [pen v] :: pen

set pen to [eraser v] :: pen
You 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.

I like this concept of the blocks, but instead of saying,
set pen to [pen v] :: pen
set pen to [eraser v] :: pen
It should probably say
set type to [pen v] :: pen
set type to [eraser v] :: pen
It just makes more sense to me this way, idk, saying set pen to pen kinda sounds weird.

But overall support.
minor-edit
Scratcher
500+ posts

Pen Eraser Block

Too much interface can be a negative. So, I have a tip:

set pen size to () // negative pen sizes erase

So, do

set pen size to (-1) // now it is an eraser, size 1

BubbleBread wrote:

It should probably say
set type to [pen v] :: pen
Could it be a mode instead?

set mode to [eraser v] :: pen

BubbleBread wrote:

saying set pen to pen kinda sounds weird.
It does.

BubbleBread wrote:

But overall support.
Me too!
Dreche
Scratcher
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
Scratcher
1000+ posts

Pen Eraser Block

Dreche wrote:

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)
What?

minor-edit wrote:

BubbleBread wrote:

It should probably say
set type to [pen v] :: pen
Could it be a mode instead?
set mode to [eraser v] :: pen
But there is already a “rotation style”.
I think just “mode”, even in a pen block, would be confusing.
I think it would have to be “set pen mode”.
MeIzAwezomeDede
Scratcher
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)

electro-test
Scratcher
96 posts

Pen Eraser Block

I support. It will make rendering more advanced.

Powered by DjangoBB