Re: Sprite questions
Posted: Wed May 21, 2014 12:00 am
Considering that transparent would be white and opaque would be black on the LCD, that works nicely if you want transparent pixels, but if you want a pixel to be white (0, transparent) no matter what when the background might already be black or gray?
Would it be possible to do something like this:
(W = white, B = black)
W B
0 0 = transparent pixel
1 0 = white
0 1 = black
1 1 = gray
This way you'd have an array for white, an array for black, and when a pixel is in both arrays, it would result in a gray pixel. Or am I missing something?
I was putting that idea forward simply because that's how it's done on older systems, say, the NES.
Would it be possible to do something like this:
(W = white, B = black)
W B
0 0 = transparent pixel
1 0 = white
0 1 = black
1 1 = gray
This way you'd have an array for white, an array for black, and when a pixel is in both arrays, it would result in a gray pixel. Or am I missing something?
I was putting that idea forward simply because that's how it's done on older systems, say, the NES.