PDA

View Full Version : This WILL teach you HSL, RGB, and XYZ



almost
02-10-2008, 09:16 PM
UPDATE:
New Version-
I fixed it to run on the newest version of SCAR! (i made this using 3.0)
Also fixed some stuff with opening up saved pictures.

This should be able to help anyone understand what HSL, RGB, and XYZ are.
Most of this form has to do with another project im working on, so don't worry about the parts that don't work or don't have to do with this.
I just felt like releasing it early before the picture changing part is completely finished, but you can still mess around with that part.

Just hold down the arrows and watch the color box change.
Also pick a color with the picker and it will show its stats.

If you want to mess with the pic changer, press the "capture screen" button.
Then the "select area" button.
Now hold down your mouse on one point of the pic, drag it to another point, and this will make the box area that will be changed. (don't make it too big!)
Let's say you want this area brighter.
Put in for example, 10 in the Luminance box.
Press the play button and it will change the pixels in that box to +10 Luminance.

You can check the box by the "Color" edit and when you press the play button, only that color will be changed in the change area.
You can also use tolerance, just fill it in in the tolerance box.

I've used this for many things.
You can give a pic of yourself a good tan with some practice! =)
You can make your eyes whatever color you want etc...

Gumleren
02-11-2008, 08:55 PM
Hm.. I don't believe SCAR comes with function called "MessageBox". At least I know my download didn't.
You could replace it with ShowMessage - but then you'd have to remove the last 2 arguments.

I guess, what I'm trying to say is that it won't compile.

Naum
02-11-2008, 08:58 PM
Amazing. This is very amazing.

almost
02-12-2008, 03:11 AM
ut oh i just realized i made and tested this completely on scar 3.0
So who knows if it is different on the laterst version.
Im dling it now and ill find out/ update it if needed.

bullzeye95
02-12-2008, 03:17 AM
Very cool :)
(XYZ isn't quite right, but I don't think that's your fault)

Works great with the latest version.

almost
02-12-2008, 03:38 AM
Did it just start working or did you have to take out the procedure MessageBox and SetSCARWindow?

bullzeye95
02-12-2008, 03:46 AM
I took out the messageboxes (which I think is GetApplication.Messagebox) and SetSCARWindow. No other problems though.

almost
02-12-2008, 03:53 AM
Yup thanks that worked.
And i guess ill use MoveToTray for the SetSCARWindow.
Im about to repost the new version.

Negaal
02-12-2008, 05:50 AM
Nice form, you understand them form, better than me:p Though I know HSL and XYZ :D I got good teachers:)