Author: Casimo
Posted: 04 Apr 2013 08:50:13 am (GMT -5)
'val' is the value of the brightness, 0 should be the brightest possible color, 255 the darkest.
And I really didn't know how to do this, that's right. I operated with just 2 colors (Black & white) before![Smile]()
I don't need the most accurate way, it should be fast.
The vectorized way seems to be useful.
_________________
![]()
Posted: 04 Apr 2013 08:50:13 am (GMT -5)
'val' is the value of the brightness, 0 should be the brightest possible color, 255 the darkest.
And I really didn't know how to do this, that's right. I operated with just 2 colors (Black & white) before

Quote: |
This is slow but accurate |
I don't need the most accurate way, it should be fast.
The vectorized way seems to be useful.
_________________
