Discuss Scratch

ThatCoder77471
Scratcher
1000+ posts

workarounds to "set saturation effect to ()"

This would be a looks block

Don't tell me to go into the costume editor and change the saturation. I would need to create a costume for every color in my situation
k0d3rrr
Scratcher
1000+ posts

workarounds to "set saturation effect to ()"

A standard workaround is:
set [color v] effect to ((0) - ((-1) / (0)))
ThatCoder77471
Scratcher
1000+ posts

workarounds to "set saturation effect to ()"

k0d3rrr wrote:

A standard workaround is:
set [color v] effect to ((0) - ((-1) / (0)))
that won't work for me because

A. i need to use the color block, so it will cancel this effect
B. i don't know where to put the saturation input
awesome-llama
Scratcher
1000+ posts

workarounds to "set saturation effect to ()"

See this project of mine for a workaround:

https://scratch.mit.edu/projects/508112233/


You can use the ghost effect to blend between the costume and a greyscale version (0 saturation) of that costume.

Last edited by awesome-llama (March 2, 2022 04:10:36)

mlcreater
Scratcher
1000+ posts

workarounds to "set saturation effect to ()"

If you create a clone with color effect = 100 + (original sprite's color) and put it on top of the sprite, changing the clone's ghost effect from 100 to 50 changes the sprite from color to greyscale.

Example code (assuming you want saturation effect numbers 0–100):
when @greenFlag clicked
change [color v] effect by (25)
start saturation effect
set [saturation v] to [50] // the sprite now looks half-saturated
wait (1) seconds :: control
set [saturation v] to [0] // the sprite is now greyscale
wait (1) seconds :: control
set [saturation v] to [100] // the sprite is in full color

define start saturation effect
create clone of [myself v]

when I start as a clone
change [color v] effect by (100)
go to [front v] layer :: looks
forever
set [ghost v] effect to (((saturation) / (2)) + (50))
end
ThatCoder77471
Scratcher
1000+ posts

workarounds to "set saturation effect to ()"

awesome-llama wrote:

See this project of mine for a workaround:

https://scratch.mit.edu/projects/508112233/


You can use the ghost effect to blend between the costume and a greyscale version (0 saturation) of that costume.
is it possible without clones?
wosdcs
Scratcher
100+ posts

workarounds to "set saturation effect to ()"

ThatCoder77471 wrote:

awesome-llama wrote:

See this project of mine for a workaround:

https://scratch.mit.edu/projects/508112233/


You can use the ghost effect to blend between the costume and a greyscale version (0 saturation) of that costume.
is it possible without clones?



It could be… But you would have to have your backdrop visible. If you really wanted to do it without the clones, you should make it so that way it stamps, then changes its own ghost effect. It would be like a clone over the sprite, but instead its the sprite over the stamp.

Powered by DjangoBB