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![]()
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!
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
Originally Posted by irc
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!
Which DTM formula?
DTM <-> String
It's only known by three or four people, if I'm correct..
Interested in C# and Electrical Engineering? This might interest you.
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
Win! Haha finally, I've been wanting to find it out for a while, thanks![]()
Interested in C# and Electrical Engineering? This might interest you.
There are currently 1 users browsing this thread. (0 members and 1 guests)