SRL Archive - Test corner

Advanced Autocoloring...


pwnaz0r

2007-11-24 01:38:34

Complete redo. I made it easier for people to get all colors.

NOTE - please use on stationary objects ONLY. If you need to do a moving object, just take a screen shot and open it up in paint :D.

If you wish to ues this, you must carefully set all the details to get best results


UseColorFinder = False; // Finds your colors;
LengthSize = 30; //Max area to check - X value
HeightSize = 30; // Same as above but Y value
HueTolerance = 30; //Make these higher if you aren't getting all the colors
SatTolerance = 30; // ""

this only has to do with using the color finder. It sets the Length and Height to search for from the center point, the max hue tolerance, and the max saturation tolerance.

SKy Scripter

2007-11-24 01:42:08

Hmmm Cool :)

Happy B-day. (Last Sunday)

Dark_Sniper

2007-11-24 01:43:02

I Just Wet Meh Pants!

that is some nice stuff pwnaz0r :p really nice :)

pwnaz0r

2007-11-24 01:43:49

From: SKy Scripter
Hmmm Cool :)

Happy B-day.


my birthday was last sunday… thank you for caring.
(LMAO, someone pointed out I was being harsh here. It was a joke, I was actually speaking with him through a mic as I posted :D)

SKy Scripter

2007-11-24 01:45:53

From: pwnaz0r
my birthday was last sunday… thank you for caring.


I dont know what you mean, because i dont care….. :rolleyes:

Narcle

2007-11-24 02:07:00

Woot! I so wanted to do this, but didn't know how. YAY

Bobarkinator

2007-11-24 02:31:26

Ah, where did ACA go? still nice work.

pwnaz0r

2007-11-24 13:13:55

added a gas finding procedure to it. Its more like gas colors present.

mastaraymond

2007-11-24 16:57:47

Another nice snippet! Well done pwnaz0r, especially for the lazy people ;). Its a usefull read for people who don't know how AutoColoring works!

~Raymond

Keep it up!

R0b0t1

2007-11-24 17:07:52


if (H >= 998.7) and (H <= 0.3) then
if (S >= 998.7) and (S <= 0.3) then
if (L >= 998.7) and (L <= 0.3) then

Uhh… The max values for all of those (to make a HSL color) is well below that. :p (Even if you are defining the values as floating points, I'm pretty sure it's between 0 and 1. eg: 0.00000-> to 0.99999->)


I think it's very good. You could try to make a form for it so it prints it out in its own box.

pwnaz0r

2007-11-24 17:15:42

yeah, I didn't exactly know the max values for. I thought I set it for 100 max though?

mastaraymond

2007-11-24 17:18:04

From: pwnaz0r
yeah, I didn't exactly know the max values for. I thought I set it for 100 max though?

Since HSL is in procents (right?).. But like it matters, as long as you set it to a big enough value ;)

pwnaz0r

2007-11-24 18:26:35

exactly :D

R0b0t1

2007-11-24 21:59:03

H:= 0 - 360

S:= 0 - 100

L:= 0 - 100


Yes, its percents, but SCAR can take them that way :)

Although, you might get errors like that. When I ran the code straigh from the DL, it came up with something like this.


if H >= 999.8

//same for other variables, even XYZ.

So I do think you should change it, as it will never complete.

X:= 0 - 1
Y:= 0 - 1
Z:= 0 - 1

XD

Macrosoft

2007-11-24 23:25:13

Nice One!!!

Happy B-day :)

the scar noob

2007-11-25 11:56:20

From: R0b0t1
H:= 0 - 360

S:= 0 - 100

L:= 0 - 100


Yes, its percents, but SCAR can take them that way :)

Although, you might get errors like that. When I ran the code straigh from the DL, it came up with something like this.


if H >= 999.8

//same for other variables, even XYZ.

So I do think you should change it, as it will never complete.

X:= 0 - 1
Y:= 0 - 1
Z:= 0 - 1

XD


Long live Wikipedia?:rolleyes:

Nice job pwnaz0r, you pwn:D

-Tsn.

R0b0t1

2007-11-25 13:05:31

Hmm? No. I had those memorized.

pwnaz0r

2007-11-28 21:03:50

hah. Well don't let this thread die. It doesn't really matter I don't think r0b0t.

Wizzup?

2007-11-29 02:19:51

I think it's 100, 100, 100 in SCAR really, both HSL and XYZ.
RGB is 255 255 255.