Color + Alpha is killing me.... (Language Help)

by UglyMike ⌂ @, Brussels, Wednesday, February 06, 2013, 06:14 (1544 days ago) @ Jim

Indeed, it would not work when alpha is less than 128, but thats a result of the demo program, since all input has alpha 225
Simply checking if the colorid is less then zero and only then doing the 2s complement conversion would fix that ( up to alpha of 127, the signed integer is positive so we can immediately go to the rood(), groen() and blauw() functions.)


Complete thread:

 RSS Feed of thread

powered by my little forum