Discuss Scratch

cs4711673
Scratcher
6 posts

pen color to effect

I need to convert a set pen color to _ value to brightness and color effects. I'm pretty sure you can make every color because you can set the brightness negative to darken it.
The color value loops between 0 and 200
The brightness value goes between -100 and 100
I made a graph of all of the color values if that helps: https://www.desmos.com/calculator/tpqv1xouam

Last edited by cs4711673 (Feb. 25, 2025 16:10:58)

cs4711673
Scratcher
6 posts

pen color to effect

this
set pen color to []
to these two
set [color v] effect to (0)
set [brightness v] effect to (0)
NotK3ndricAltAgain
Scratcher
500+ posts

pen color to effect

when green flag clicked
set pen color to (50)
set [pen colour v] to [50]
set [colour or brightness v] effect to (pen colour)
You could also do this:
define set pen colour to (num)
set pen color to (num)
set [pen colour v] to (num)
define change pen colour by (num)
change pen color by (num)
change [pen colour v] by (num)
Hope this helps!
brintcha06
Scratcher
34 posts

pen color to effect

idea is…
when this sprite clicked
change [ v] effect by (20[scratchblocks]
)[/scratchblocks]
play sound [ popv] until done
cs4711673
Scratcher
6 posts

pen color to effect

NotK3ndricAltAgain wrote:

when green flag clicked
set pen color to (50)
set [pen colour v] to [50]
set [colour or brightness v] effect to (pen colour)
You could also do this:
define set pen colour to (num)
set pen color to (num)
set [pen colour v] to (num)
define change pen colour by (num)
change pen color by (num)
change [pen colour v] by (num)
Hope this helps!

what is the formula to get the pen color to color and brightness
NotK3ndricAltAgain
Scratcher
500+ posts

pen color to effect

cs4711673 wrote:

NotK3ndricAltAgain wrote:

-snip-
Hope this helps!

what is the formula to get the pen color to color and brightness
heres my totaly supr dupr deetaald explenation!!!1!

Powered by DjangoBB