Discuss Scratch

PH-zero
Scratcher
100+ posts

The 3rd color dimension.

Hey
When you work with the pen tools, you can:

Set the color directly, with the color field.

Or work with | Set color to (_) | and | Set color-brightness to (_) |
(Ignoring the changing blocks)

With the secound method you can't reach all colors. For example gray.

There should be a block wich says: | Set color saturation to (_) |

These blocks work with the HSB system. (Hue Saturation Brightness)
But currently, the saturation block is missing.

Support
____________________________
turkey3
ProdigyZeta7
Wes64
DadOfMrLog
Zparx
ev3commander
1234abcdcba4321

Last edited by PH-zero (Feb. 10, 2014 16:40:54)

turkey3
Scratcher
1000+ posts

The 3rd color dimension.

Support! And P.S. I'm pretty sure brightness and saturation are the same thing; the shade is “lightness” instead if “brightness”, as there's a difference.
PH-zero
Scratcher
100+ posts

The 3rd color dimension.

brightness and saturation are the same thing;
How do you make gray? its impossible without.. or rather with always 100% saturation.

lets say we have:

H = Blue
B = 0%

so thats black.

now we rise B.

First, there is a very dark blue… getting brighter… dark blue..
and finnaly, blue. we reached B=50%
we continue rising B… Light blue… verly light blue.. and finnaly:
White.
B=100%

So no matter wich color you pik.. (say, no matter what H is)
You can NEVER reach gray, because gray is S=0.
And S is always 100% (Since we cant change it.)

Last edited by PH-zero (Aug. 1, 2013 20:19:18)

turkey3
Scratcher
1000+ posts

The 3rd color dimension.

PH-zero wrote:

brightness and saturation are the same thing;
How do you make gray? its impossible without.. or rather with always 100% saturation.

lets say we have:

H = Blue
B = 0%

so thats black.

now we rise B.

First, there is a very dark blue… getting brighter… dark blue..
and finnaly, blue. we reached B=50%
we continue rising B… Light blue… verly light blue.. and finnaly:
White.
B=100%

So no matter wich color you pik.. (say, no matter what H is)
You can NEVER reach gray, because gras is S=0.
And S is always 100% (Since we cant change it.)
Scratch has lightness and hue for pen; I support saturation, I'm just saying that I think in art brightness and saturation are the same term.
DadOfMrLog
Scratcher
1000+ posts

The 3rd color dimension.

@PH-zero:

I have a set of custom blocks that provide drop-in replacements for the built-in “set/change pen color” and “set/change pen shade” blocks, but also adds “set/change pen saturation”.

You can find them in the “Rendering” sprite in the 3d demo project (just scroll about halfway down). You also need the “convert pen to rgb” custom block just above and right of them.

Note that the shade range appears slightly different to the built-in “set pen shade” block, because the built-in one doesn't actually make zero value shade into black (only nearly so), whereas this one does. But it's pretty similar.

Hope that's useful!

EDIT: having said all that, I'd quite like to see built-in pen blocks to do this…

Last edited by DadOfMrLog (July 29, 2013 15:27:14)

ProdigyZeta7
Scratcher
1000+ posts

The 3rd color dimension.

Yes yes yes!! I fully support!
Wes64
Scratcher
500+ posts

The 3rd color dimension.

complete support.
kayybee
Scratcher
1000+ posts

The 3rd color dimension.

turkey3 wrote:

PH-zero wrote:

brightness and saturation are the same thing;
How do you make gray? its impossible without.. or rather with always 100% saturation.

lets say we have:

H = Blue
B = 0%

so thats black.

now we rise B.

First, there is a very dark blue… getting brighter… dark blue..
and finnaly, blue. we reached B=50%
we continue rising B… Light blue… verly light blue.. and finnaly:
White.
B=100%

So no matter wich color you pik.. (say, no matter what H is)
You can NEVER reach gray, because gras is S=0.
And S is always 100% (Since we cant change it.)
Scratch has lightness and hue for pen; I support saturation, I'm just saying that I think in art brightness and saturation are the same term.
Brightness and saturation aren't the same. Brightness and lightness are the same.

That's why some people say HSB, and others say HSL. (actually the L is luminance but…)

Last edited by kayybee (July 29, 2013 17:29:03)

PH-zero
Scratcher
100+ posts

The 3rd color dimension.

I have a set of custom blocks that provide drop-in replacements for the built-in “set/change pen color” and “set/change pen shade” blocks, but also adds “set/change pen saturation”.

You can find them in the “Rendering” sprite in the 3d demo project (just scroll about halfway down). You also need the “convert pen to rgb” custom block just above and right of them.

Note that the shade range appears slightly different to the built-in “set pen shade” block, because the built-in one doesn't actually make zero value shade into black (only nearly so), whereas this one does. But it's pretty similar.

Hope that's useful!
I just noticed that this block is “missing”.
But im now working with colors right now, but still thanks
Zparx
Scratcher
500+ posts

The 3rd color dimension.

support!
PH-zero
Scratcher
100+ posts

The 3rd color dimension.

Hey, I also noticed thet the sprites ALSO working with HSB!
You got the “Color”-Effect and the “Brightness”-Effect, but again:

no Saturation….

Seriously, it's true: If you make a completley black sprite and then
use the brightness effect, the sprite get's BLUE O.O
PH-zero
Scratcher
100+ posts

The 3rd color dimension.

hey
I already mentioned this here.
But in this post im going to focus on this missing part of the Scratch color system: Saturation.

Im sorry, but its bugging me!
The Saturation is just as important as hue or brightness
Its a part of HSB, just like the others, why should it be left out?

I know that you can set and even get a “quite spezific” color
by putting togehter huge and/or inefficient scripts
that enter a value from 0 to 16.7 Million into the
set pen color to [#f0f]
block…

But seriously… this is unnecessarily complicated and time-consuming.

ok, so if you can tell me a good reason like:

to hard to implement (i don't think so…)
to complicated for new users (they're supposed to understand hue/brightness, so why no saturation?)
etc.

why this shouldn't be implemented, then i shall be satisfied
ev3commander
Scratcher
500+ posts

The 3rd color dimension.

PH-zero wrote:

brightness and saturation are the same thing;
How do you make gray? its impossible without.. or rather with always 100% saturation.

lets say we have:

H = Blue
B = 0%

so thats black.

now we rise B.

First, there is a very dark blue… getting brighter… dark blue..
and finnaly, blue. we reached B=50%
we continue rising B… Light blue… verly light blue.. and finnaly:
White.
B=100%

So no matter wich color you pik.. (say, no matter what H is)
You can NEVER reach gray, because gray is S=0.
And S is always 100% (Since we cant change it.)
S can be 1-100. This is because in “edit block colors” in the shift-edit menu, there is Hue-0-360 Sat1-100 Brightness1-100.
Anyway,
Support!

Last edited by ev3commander (Feb. 9, 2014 21:55:40)

1234abcdcba4321
Scratcher
1000+ posts

The 3rd color dimension.

S is 100 when you can't change it.
SUPPORT!!!!!
DadOfMrLog
Scratcher
1000+ posts

The 3rd color dimension.

Good to see this being supported.

I'd suggest using the word “greyness” instead of “saturation”. And having the default greyness be zero (which corresponds to the current full saturation default pen setting). So the greyness is the ‘opposite’ of saturation.

I think that's more immediately understandable for many Scratchers, and gives the same capability. And, after all, we already have the word “lightness” replaced with “shade”, and “hue” replaced with “color” (which makes it look exactly the same as the pen block that takes an RGB value )…

So:
set pen color to ()
set pen shade to () // note that zero isn't actually totally black at the mo... :/
set pen greyness to () // category=pen takes values from 0 to 100
change pen color by ()
change pen shade by ()
change pen greyness by () // category=pen

Last edited by DadOfMrLog (Feb. 10, 2014 09:49:49)

1234abcdcba4321
Scratcher
1000+ posts

The 3rd color dimension.

I think saturation should be colorness, and have it default at 100, like size.
PH-zero
Scratcher
100+ posts

The 3rd color dimension.

It's always good to name things the correct way but I have to admit that “saturation”
is a bit overkill xD
grayness or colorness sounds good to me

Last edited by PH-zero (Feb. 10, 2014 20:14:42)

ev3commander
Scratcher
500+ posts

The 3rd color dimension.

1234abcdcba4321 wrote:

I think saturation should be colorness, and have it default at 100, like size.
Nah, hue is colorness./
PH-zero
Scratcher
100+ posts

The 3rd color dimension.

ev3commander wrote:

1234abcdcba4321 wrote:

I think saturation should be colorness, and have it default at 100, like size.
Nah, hue is colorness./
Well, this is difficult to define…
while “color” refers to every color we could think of,
the “hue” refers to a component of a color.
So yeah, calling either saturation, or hue “colorness”
is incorect.

Powered by DjangoBB