Discuss Scratch

ParadoxScratching
Scratcher
100+ posts

How to convert RGB codes into colour effect, brightness effect and ghost effect?

Given the R, G and B, how do I turn a sprite into any colour using these three blocks?
setcoloureffectto0
setbrightnesseffectto0
setghosteffectto0
Also, what should the colour of the sprite and background be?
PS. Don't suggest me to use pen. Doesn't work for my project, trust me.
theosa11
Scratcher
71 posts

How to convert RGB codes into colour effect, brightness effect and ghost effect?

ParadoxScratching wrote:

Given the R, G and B, how do I turn a sprite into any colour using these three blocks?
setcoloureffectto0
setbrightnesseffectto0
setghosteffectto0
Also, what should the colour of the sprite and background be?
PS. Don't suggest me to use pen. Doesn't work for my project, trust me.
well it depends on hat colo you want it to be
ParadoxScratching
Scratcher
100+ posts

How to convert RGB codes into colour effect, brightness effect and ghost effect?

theosa11 wrote:

ParadoxScratching wrote:

Given the R, G and B, how do I turn a sprite into any colour using these three blocks?
setcoloureffectto0
setbrightnesseffectto0
setghosteffectto0
Also, what should the colour of the sprite and background be?
PS. Don't suggest me to use pen. Doesn't work for my project, trust me.
well it depends on hat colo you want it to be
Of course I know. Is there a general formula for that though?

Last edited by ParadoxScratching (Aug. 16, 2021 01:14:44)

267511
Scratcher
11 posts

How to convert RGB codes into colour effect, brightness effect and ghost effect?

Would this help solve your problem?

https://scratch.mit.edu/projects/560848262/
Minecraft_Zoldyc
Scratcher
2 posts

How to convert RGB codes into colour effect, brightness effect and ghost effect?

ParadoxScratching wrote:

Given the R, G and B, how do I turn a sprite into any colour using these three blocks?
setcoloureffectto0
setbrightnesseffectto0
setghosteffectto0
Also, what should the colour of the sprite and background be?
PS. Don't suggest me to use pen. Doesn't work for my project, trust me.
Welp, you could change the numbers a bit………….
deck26
Scratcher
1000+ posts

How to convert RGB codes into colour effect, brightness effect and ghost effect?

I suspect what you're asking for is not possible but perhaps others know different.
Scratch-Minion
Scratcher
1000+ posts

How to convert RGB codes into colour effect, brightness effect and ghost effect?

This project may help: https://scratch.mit.edu/projects/528561456/

It uses 10 costumes, all red (ie. color = 0), with different saturations as you need to set saturation as well as color and brightness.

Given any RGB colour, it chooses the costume with the closest saturation, then applies a color and brightness effect.

There is a long explanation in the project instructions and code inside.
ParadoxScratching
Scratcher
100+ posts

How to convert RGB codes into colour effect, brightness effect and ghost effect?

Minecraft_Zoldyc wrote:

ParadoxScratching wrote:

Given the R, G and B, how do I turn a sprite into any colour using these three blocks?
setcoloureffectto0
setbrightnesseffectto0
setghosteffectto0
Also, what should the colour of the sprite and background be?
PS. Don't suggest me to use pen. Doesn't work for my project, trust me.
Welp, you could change the numbers a bit………….
That is the most useful piece of information I've ever received! Thanks a lot!
ParadoxScratching
Scratcher
100+ posts

How to convert RGB codes into colour effect, brightness effect and ghost effect?

Scratch-Minion wrote:

This project may help: https://scratch.mit.edu/projects/528561456/

It uses 10 costumes, all red (ie. color = 0), with different saturations as you need to set saturation as well as color and brightness.

Given any RGB colour, it chooses the costume with the closest saturation, then applies a color and brightness effect.

There is a long explanation in the project instructions and code inside.
Nice~ I'll check that out

Powered by DjangoBB