Discuss Scratch

-TheMadScientist-
Scratcher
13 posts

Need help with blurring a picture!

I'm currently working on a big project but I need help with blurring. Please help.
define set blur effect to (0)

-TMS- 2021
awesome-llama
Scratcher
1000+ posts

Need help with blurring a picture!

Be more specific. Is the picture a costume? Is your picture stored in variables/lists and you want to apply a blur algorithm to it?


-TheMadScientist-
Scratcher
13 posts

Need help with blurring a picture!

awesome-llama wrote:

Be more specific. Is the picture a costume? Are your picture stored in variables/lists and you want to apply a blur algorithm to it?
Well, it is a costume and no to your other question. Hope this makes sense to you.

-TMS- 2021
awesome-llama
Scratcher
1000+ posts

Need help with blurring a picture!

-TheMadScientist- wrote:

awesome-llama wrote:

Be more specific. Is the picture a costume? Are your picture stored in variables/lists and you want to apply a blur algorithm to it?
Well, it is a costume and no to your other question. Hope this makes sense to you.
OK, so if you want to apply the blur directly to the costume, it has to be done outside of Scratch as such a function does not exist. You'll have to download it, open it up in an image editor and apply the blur you want, then reupload it.

If you wanted a blur effect (like using the effect block), then a more creative method will have to be done. I made a demonstration project here: https://scratch.mit.edu/projects/525844956/
It is possible to make a sprite blurry by stamping it a bunch of times with slight offsets.
This project uses a grid of points as offset locations, with corners removed to form a circular group instead. This ensures that blurring occurs evenly in all directions, even diagonally.

A similar thing could be done with clones, but it is a bit more complicated as a few other things have to be dealt with.


PutneyCat
Scratcher
500+ posts

Need help with blurring a picture!

Maybe pixellate effect?
-TheMadScientist-
Scratcher
13 posts

Need help with blurring a picture!

awesome-llama wrote:

-TheMadScientist- wrote:

awesome-llama wrote:

Be more specific. Is the picture a costume? Are your picture stored in variables/lists and you want to apply a blur algorithm to it?
Well, it is a costume and no to your other question. Hope this makes sense to you.
OK, so if you want to apply the blur directly to the costume, it has to be done outside of Scratch as such a function does not exist. You'll have to download it, open it up in an image editor, apply the blur you want, and then reupload it.

If you want a blur effect (like using the effect block), then a more creative method will have to be done. I made a demonstration project here: https://scratch.mit.edu/projects/525844956/
It is possible to make a sprite blurry by stamping it a bunch of times with slight offsets.
This project uses a grid of points as offset locations, with corners removed to form a circular group instead. This ensures that blurring occurs evenly in all directions, even diagonally.

A similar thing could be done with clones, but it is a bit more complicated as a few other things have to be dealt with.
Thanks,

-TMS- 2021

Powered by DjangoBB