Discuss Scratch

EIephant_Lover
Scratcher
500+ posts

Eraser for Pen

Hi, I know this is technically a duplicate (there is a different post here), but it doesn't really explain it super well.

What I'm suggesting is an eraser tool in pen. Not a white pen, but one that removes the pen at a specific point.
Unlike the
clear
block, this would be more of an
eraser down :: pen
block. It would function just like any other pen color, when it is down it stays down and up it stays up (unless you tell it otherwise). The different parts of it (color, saturation, etc.) would not be the same (how do you set those for an eraser?). However, the transparency could work (slightly erase something or solid erase).

I'd like to clear up some things mentioned in the other post.

I am NOT asking for a white pen block, it already exists. This was suggested for a “fix”, but what if your background is multicolored? I came upon the need for an eraser while making something that is covered by pen that is revealed by the user, and not all at once.

I am NOT asking for this:
when green flag clicked
if <touching color [#84c018] ?> then
set pen color to [#84c018]
pen down
end

There are a few problems with this.
  1. If you have an image with many, many colors (for instance a photograph), you'd have to go through every single pixel and make this script.
  2. Even if you did that (which no sane person ever would), if you wanted to reveal it based on what the user does, the pen size would have to be TINY to make sure every color shows up.
Enough said, that should explain why that doesn't work.

(Oh, and that first post is five years old.)

Edit: It is a better idea to have a
 set pen mode to [eraser v] :: pen 
block and not an “eraser down” block, so it doesn't get confusing (e.g. pen and eraser used at the same time). Thanks to @imfh for that suggestion.

Last edited by EIephant_Lover (May 17, 2019 19:58:51)

CrazyScoop
Scratcher
100+ posts

Eraser for Pen

You could do a workaround if the backdrop is not colorful.

set pen color to [#ffffff]

But if the backdrop is colorful, then I support it. This block would be very useful for that.

i helped jeffalo get it's 995th ocular status, also moved to @socialix like a long while ago
venyanwarrior
Scratcher
1000+ posts

Eraser for Pen

Support. I personally don't use pen blocks, but I can see how this would be frustrating.

If you're seeing this signature, that means I've come out of my social anxiety hole.

Also, I edit the Scratch Wiki. Check it out sometime it's cool I guess.
imfh
Scratcher
1000+ posts

Eraser for Pen

That post is also closed. I think there might be some other suggestions somewhere which suggest this at least in part though…

I think it would be better if it worked like this below. That way it only adds one block and it is less confusing. What happens if both the pen and the eraser are down? Adding it like this would also allow for other pen types/brushes (such as a pixel brush without antialiasing).

set pen mode to [eraser v] :: pen // normal, eraser, ...

Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/
Luvexina
Scratcher
500+ posts

Eraser for Pen

This would be great! It would also be good for people making pen platformers

Support trans youth, in Texas and across the globe!
EIephant_Lover
Scratcher
500+ posts

Eraser for Pen

CrazyScoop wrote:

You could do a workaround if the backdrop is not colorful.

set pen color to [#ffffff]

But if the backdrop is colorful, then I support it. This block would be very useful for that.
I have addressed this in the original post, please read before posting.
EIephant_Lover
Scratcher
500+ posts

Eraser for Pen

imfh wrote:

That post is also closed. I think there might be some other suggestions somewhere which suggest this at least in part though…

I think it would be better if it worked like this below. That way it only adds one block and it is less confusing. What happens if both the pen and the eraser are down? Adding it like this would also allow for other pen types/brushes (such as a pixel brush without antialiasing).

set pen mode to [eraser v] :: pen // normal, eraser, ...
Great idea! I think I'll add this to the original post (with credit to you).

Powered by DjangoBB