Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Changing sprite color to any specific color.
- Rakono
-
Scratcher
74 posts
Changing sprite color to any specific color.
Is there a way to convert rgb values of a color to hsl and use the color and brightness effects to make the sprite a specific color?
The sprite costume wouldn't be white or black of course cause then you couldn't get any color.
I need it cause I'm making a clone text engine and wanted the letters to be a specific color.
It would be a lot easier if there was a saturation block but well there isn't one even in turbowarp.
The sprite costume wouldn't be white or black of course cause then you couldn't get any color.
I need it cause I'm making a clone text engine and wanted the letters to be a specific color.
It would be a lot easier if there was a saturation block but well there isn't one even in turbowarp.
- UrBoiElobe
-
Scratcher
3 posts
Changing sprite color to any specific color.
Do you mean like changing the colour?
- Rakono
-
Scratcher
74 posts
Changing sprite color to any specific color.
Do you mean like changing the colour?Like making a custom block that changes the color of the sprite to the color that you chose with rgb values.
If you could use the brightness effect and hue effect to do that.
- UrBoiElobe
-
Scratcher
3 posts
Changing sprite color to any specific color.
so like using a command to change the sprite colour?
- housemuseum
-
Scratcher
100+ posts
Changing sprite color to any specific color.
you can use hex just do
(join [0x] (hex))
- Scratch-Minion
-
Scratcher
1000+ posts
Changing sprite color to any specific color.
This project of mine https://scratch.mit.edu/projects/508532062/ has a “Convert RGB to Hue Saturation Brightness” custom block you can backpack into your project.
If your text engine costumes are Red, then you can set the Color Effect to match the hsb Color.
The brightness effect (range -100 to 100) can also be set from the Brightness (range 0-100)
The saturation effect is more of a problem.
I am sure I have seen some Scratchers stamp a sprite twice, once with altered effects to achieve saturation.
You can search the forums for this or hopefully someone will add what to do for saturation.
If your text engine costumes are Red, then you can set the Color Effect to match the hsb Color.
set [color v] effect to ((Pen Color) * (2))
The brightness effect (range -100 to 100) can also be set from the Brightness (range 0-100)
The saturation effect is more of a problem.
I am sure I have seen some Scratchers stamp a sprite twice, once with altered effects to achieve saturation.
You can search the forums for this or hopefully someone will add what to do for saturation.
- Rakono
-
Scratcher
74 posts
Changing sprite color to any specific color.
This project of mine https://scratch.mit.edu/projects/508532062/ has a “Convert RGB to Hue Saturation Brightness” custom block you can backpack into your project.Really cool project but I'm talking about using clones so yeah saturation is off limits. Tho isn't the brightness 0-100 like increasing saturation?
If your text engine costumes are Red, then you can set the Color Effect to match the hsb Color.set [color v] effect to ((Pen Color) * (2))
The brightness effect (range -100 to 100) can also be set from the Brightness (range 0-100)
The saturation effect is more of a problem.
I am sure I have seen some Scratchers stamp a sprite twice, once with altered effects to achieve saturation.
You can search the forums for this or hopefully someone will add what to do for saturation.
- NeonG4
-
Scratcher
1000+ posts
Changing sprite color to any specific color.
Is this an example of what you would like?This project of mine https://scratch.mit.edu/projects/508532062/ has a “Convert RGB to Hue Saturation Brightness” custom block you can backpack into your project.Really cool project but I'm talking about using clones so yeah saturation is off limits. Tho isn't the brightness 0-100 like increasing saturation?
If your text engine costumes are Red, then you can set the Color Effect to match the hsb Color.set [color v] effect to ((Pen Color) * (2))
The brightness effect (range -100 to 100) can also be set from the Brightness (range 0-100)
The saturation effect is more of a problem.
I am sure I have seen some Scratchers stamp a sprite twice, once with altered effects to achieve saturation.
You can search the forums for this or hopefully someone will add what to do for saturation.
- Scratch-Minion
-
Scratcher
1000+ posts
Changing sprite color to any specific color.
Here are some more resources you could look at to simulate Saturation with effects blocks:
This project https://scratch.mit.edu/projects/423622379/ shows simulating Saturation with a sprite and a clone.
It works for me when running Scratch in the browser Firefox but does not work with the browser Chrome.
This project has a few methods: https://scratch.mit.edu/projects/508112233/
Another forum topic to look at: https://scratch.mit.edu/discuss/topic/584367/
This project https://scratch.mit.edu/projects/423622379/ shows simulating Saturation with a sprite and a clone.
It works for me when running Scratch in the browser Firefox but does not work with the browser Chrome.
This project has a few methods: https://scratch.mit.edu/projects/508112233/
Another forum topic to look at: https://scratch.mit.edu/discuss/topic/584367/
- Discussion Forums
- » Help with Scripts
-
» Changing sprite color to any specific color.