This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-06-15 11:51:32

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Colour models/spaces and Colour Maths

Talk about colour models and spaces, along with Colour Maths.

I have one.
Name: RB colour space. B has 2 values, shade of lightness and shade of Bleen/Grue. R is 0 to 255, B (Grue and Bleen together) is 0 to 127.5 on both values.
Mix 100% R with 50% B. You get magenta. Change 50% to 100%. You get yellow.

Another one.
Name: CL colour space. C has 1 value, with 0 to 64 for red, 65 (0 in red, yellow, green, aqua, white, and blue colour space) to 128 (255 in red yellow... colour space) for yellow, and 129 to 192 for green, and so on, with 64 shades of every colour. L is the lightness.
Here is a list with black-colour values at C.
0 - black
128 - red
---
129 - black
192 - yellow
and so on.
A list for L is below.
-255 - another way to make black
0 - colour/normal
255 - white
and, it stops there.
No actual colour mixing on this one.

Another colour space.
Name: OPG colour space, paint.
O and P make red.
G and P make grey.
O and G+P make light orange.
And so on.

My CL colour space is my first complex one, not supporting every colour however.

Last edited by rdococ (2011-06-15 12:17:40)

Offline

 

#2 2011-06-15 11:59:34

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: Colour models/spaces and Colour Maths

HSV color space
HSV stands for Hue, Saturation, Value.
The values go from 0 to 360.
Hue is:
0 red
60 yellow
120 green
180 cyan
240 blue
300 purple
360 red

Saturation is the gray value (0 is black/white, 360 is full color).
Value/Brightness is the brightness of the color:
0 black, 100 full color.

I haven't invented that color space... I don't know who did it.

Last edited by meew0 (2011-06-15 12:20:18)


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#3 2011-06-15 12:05:05

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Colour models/spaces and Colour Maths

Mine is HGB (Hue, Grayscale, Balance). Hue is the colour, from 0 to 359, grayscale runs from white to black, 0 to 255, and balance changes the dominance of greyscale, 0 to 1. For example, pink is 0, 0, 0.5 (Hue: red, greyscale: white, balance: equal), navy is 240, 0.9, 0.7 (Hue: blue, greyscale: almost black, balance: 30% colour, 70% greyscale). It's similar to hsv, but not exactly the same. It's designed to be easy to make changes in the shade of the colour, so would be ideal for adding highlights and shadows to things.


/* No comment */

Offline

 

#4 2011-06-15 12:15:07

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Colour models/spaces and Colour Maths

TheSuccessor wrote:

Mine is HGB (Hue, Grayscale, Balance). Hue is the colour, from 0 to 359, grayscale runs from white to black, 0 to 255, and balance changes the dominance of greyscale, 0 to 1. For example, pink is 0, 0, 0.5 (Hue: red, greyscale: white, balance: equal), navy is 240, 0.9, 0.7 (Hue: blue, greyscale: almost black, balance: 30% colour, 70% greyscale). It's similar to hsv, but not exactly the same. It's designed to be easy to make changes in the shade of the colour, so would be ideal for adding highlights and shadows to things.

Nice idea.
I like it.  tongue
I know.. I'll make a sHGB colour space from the colour model HGB.  big_smile
Hue runs from 0 to 560, an extra 201 shades for Squant.

EDIT: I made another one. XY(ZA) colour model. X is the picture with a red filter, and Y with a (determined by Z value, aqua if GB, green if YB) filter. Y has 3 values, the actual Y and the Z, along with A. Z is either GB or YB. A determines which the colour Y uses; green to blue or yellow to blue.
100% X and 100% Y with GB Z and 0 A, makes yellow. 100 A along with the 100 X and Y with GB Z would equal Magenta. It's an attempt to combine RYB and RGB into one colour model.

Last edited by rdococ (2011-06-15 12:45:02)

Offline

 

Board footer