Re:Color Emulation
by byuu on Friday September 13, 2019 @06:05AM
(#20960675)
Here is a generic function that will turn any bit-depth into any other bit-depth:
In fact, you probably should use normalization when converting arbitrary levels. A floating point multiply is almost certainly cheaper than a while loop. But hey, why not? Just don't use it for any real-time stuff unless you build a color palette cache.
[ Parent
| on HN ]
There are no comments on this comment yet.