Discuss Scratch

brodolon
Scratcher
28 posts

scratch number colors

So im wondering how the color effect works. and what number is the color blue red and green and yellow if the sprite is white? i was hoping some scratch expert would help because im not very good at this stuff and am really lazy. anyways thank you for the help in advance!
Sonickyle
Scratcher
1000+ posts

scratch number colors

The number just affects the hue of the sprite, much how programs such as Paint.NET and Photoshop have a hue changer.
brodolon
Scratcher
28 posts

scratch number colors

ok but can you set the color to a number like 500 and it be red? what are the numbers to set it to the colors i mentioned above? please tell me if you know.
mathfreak231
Scratcher
1000+ posts

scratch number colors

Pen Color (value)

It goes from 1 to 200 and loops back after that.
turkey3
Scratcher
1000+ posts

scratch number colors

Think of a rainbow that starts at red and goes from 1-200
TheLogFather
Scratcher
1000+ posts

scratch number colors

The colour effect doesn't set to a specific colour. Rather, it ‘shifts’ the existing hues in the sprite by that amount through the hue spectrum.

The hue spectrum goes something like this:

red -> yellow -> green -> cyan -> blue -> magenta -> back to red

Each arrow above corresponds to a shift of just over 33, so a shift of 200 is equivalent to no shift at all (because it takes you right around, back to your starting point).

That means, if you “set color effect to 33”, any green in the sprite will go to cyan (a light blue colour), any blue in the sprite will go to magenta (a pinky-purple colour), etc.


To get a feel for the HSL (hue, saturation, lightness) colour space, try out this project: http://scratch.mit.edu/projects/12713728/

This wikipedia page might also have some helpful bits: http://en.wikipedia.org/wiki/HSV_color_space


One thing worth noting is that black and white don't get changed as the hue shifts. This means you won't see anything happen to any black/white of your sprite if only using “set color effect”. However, if you change the brightness, then it does appear to affect white (if brightness is set negative) and black (if positive) in such a way that the colour effect does make a difference…

Hope that's helpful!

Last edited by TheLogFather (July 5, 2014 21:38:29)

brodolon
Scratcher
28 posts

scratch number colors

thats very helpful! thanks!
Herobrinebacon
Scratcher
1 post

scratch number colors

You can use the “set color effect” block for a certain color. It works like a rainbow, red being 1.

Last edited by Herobrinebacon (Feb. 16, 2016 06:20:36)

Redmap
Scratcher
19 posts

scratch number colors

then white is 199 or something around that…

Last edited by Redmap (March 5, 2016 05:41:48)

flutehamster
Scratcher
500+ posts

scratch number colors

TheLogFather wrote:

The colour effect doesn't set to a specific colour. Rather, it ‘shifts’ the existing hues in the sprite by that amount through the hue spectrum.

The hue spectrum goes something like this:

red -> yellow -> green -> cyan -> blue -> magenta -> back to red

Each arrow above corresponds to a shift of just over 33, so a shift of 200 is equivalent to no shift at all (because it takes you right around, back to your starting point).

That means, if you “set color effect to 33”, any green in the sprite will go to cyan (a light blue colour), any blue in the sprite will go to magenta (a pinky-purple colour), etc.


To get a feel for the HSL (hue, saturation, lightness) colour space, try out this project: http://scratch.mit.edu/projects/12713728/

This wikipedia page might also have some helpful bits: http://en.wikipedia.org/wiki/HSV_color_space


One thing worth noting is that black and white don't get changed as the hue shifts. This means you won't see anything happen to any black/white of your sprite if only using “set color effect”. However, if you change the brightness, then it does appear to affect white (if brightness is set negative) and black (if positive) in such a way that the colour effect does make a difference…

Hope that's helpful!

This helped me, thanks!
lexo610
Scratcher
1 post

scratch number colors

what is the color effect for black???

Last edited by lexo610 (March 20, 2016 20:41:45)

Gamergirl446
Scratcher
14 posts

scratch number colors



red yellow green cyan blue magenta red cool

Gamergirl446
Scratcher
14 posts

scratch number colors



okay i like this

Powered by DjangoBB