Ok, I was looking at this http://java.sun.com/j2se/1.4.2/docs/...awt/Color.html and I was like ._.
How does SCAR calculate the RGB values of a 'colour' and then turn it into an integer?
Thanks :)
Printable View
Ok, I was looking at this http://java.sun.com/j2se/1.4.2/docs/...awt/Color.html and I was like ._.
How does SCAR calculate the RGB values of a 'colour' and then turn it into an integer?
Thanks :)
(R+256*G)*256+B or maybe the other way around
Actually (B+256*G)*256+R
Thanks Boreas!
Double post Boreas! I aughta infract you!
SCAR Code:program New;
const
r = 100;
g = 100;
b = 100;
begin
WriteLn( RGBtoColor(r, g, b) );
WriteLn( (r + (g shl 8) + (b shl 16)) );
end.
SCAR Code:program New;
const
c = 13132900;
var
r, g, b: Integer;
begin
ColorToRGB(c, r, g, b);
WriteLn(Format('r: %d g: %d b: %d', [r, g, b]));
r := Byte(c);
g := Byte(c shr 8);
b := Byte(c shr 16);
WriteLn(Format('r: %d g: %d b: %d', [r, g, b]));
end.
Thanks nielsie! Helped A LOT
Thanks,
I will give this a build this week and let you know =)
I think I have the most fussiest of Plasma RGB in TV sets... I have tried so many different methods of configuring SCART for the Amiga output it is crazt, what really peeves me is that it would work fine on the CRT tv, just not my plasma!!!
So it would be nice to be able to put this to bed to be honest!
http://villavu.com/forum/showthread.php?t=18514
Every formula has its explanation :)
Except for the DTM formula..
Which DTM formula?
DTM <-> String
It's only known by three or four people, if I'm correct..
Win! Haha finally, I've been wanting to find it out for a while, thanks :)