Implemeting "drawing modes" in a graphics library?
Posted
by banister
on Stack Overflow
See other posts from Stack Overflow
or by banister
Published on 2010-03-17T22:25:29Z
Indexed on
2010/03/18
18:11 UTC
Read the original article
Hit count: 187
i would like to implement 'drawing modes' (in my own graphics library).
That is drawing with AND, OR, etc However i am storing colors using floats, each channel between 0 and 1.0 Do i have to first convert each color channel to 0-255 before i can use the AND, OR, etc drawing modes? and then convert back to float (0.0-1.0) ?
Or is there another way of doing it?
thanks
© Stack Overflow or respective owner