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

#1 2012-05-06 14:23:44

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

HAsPl colour model

I decided to build on HSP and create the HPsPl (Hue, Percieved Saturation, Percieved lightness) colour model.

The formulas for the two new values (RGB -> HPsPl) is:
Pl  =  sqrt((0.299 (R^2)) + (0.587 (G^2)) + (0.114 (B^2)))
Ps  =  max(0.299 (R*3), 0.587 (G*3), 0.114 (B*3)) - min(0.299 (R*3), 0.587 (G*3), 0.114 (B*3))

Note: This was once called the HAsPl colour model.

Last edited by rdococ (2012-06-08 05:48:21)

Offline

 

#2 2012-05-08 04:58:45

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: HAsPl colour model

Nice.  big_smile


http://trinary.tk/images/signature_.php

Offline

 

#3 2012-05-08 05:19:27

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

Re: HAsPl colour model

I figured out a formula for As while playing around with the maths involved.

You could create your own, too... I plan on making the first "colour model creator".

Offline

 

#5 2012-06-09 15:05:53

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: HAsPl colour model

Colors are very fun! I really do like HSB and such. They make it really easy to adjust the brightness/intensity of a color (adjust the respective channels) instead of fiddling with two channels at the same time.


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

Board footer