Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 7329

Re: Formula for calculating colors

$
0
0

No, it's correct.  That's the way RGB is calculated.

 

In your example:  RGB ( 120, 255, 129 ) it would be

 

65536 * 129 + 256 * 255 + 120

 

Multiplication takes precedence over addition, so you then get:

 

8454144 + 65280 + 120

 

And then finally:

 

8519544


Viewing all articles
Browse latest Browse all 7329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>