how does the scar color picker work, as in how is the number converted back into RGB
how does the scar color picker work, as in how is the number converted back into RGB
ColorToRGB()...?
lol
can i get the formula instead of having to figure it out myself doing the funciton multiple times
Click the color picker and then click somewhere where the color is that you want...
It should pop up like this:
Color Picked(123, 321) = 123456789 (haven't used SCAR in a while)
And the 123456789 is the color used like:
if FindColor(x, y, 123456789, MSx1, MSy1, MSx2, MSy2) then
Hope I helped
EDIT: Oh do you mean how does the absoulte procedure work? If so its just like paint's color picker cept paint doesn't output it and just saves it so i'm not to sure
Here's the answer, from the thread posted by CazaX above:
procedure ColorToRGB(Color: Integer; var r, g, b: Integer);
begin
r:= (Color) and 255;
g:= (Color shr 8) and 255;
b:= (Color shr 16) and 255;
end;
There are currently 1 users browsing this thread. (0 members and 1 guests)