Phoebus Dokos wrote:
> ie. 01111111 00011111 11111111 as a starting colour - but calculating that
> wouldn't be difficult).
If you just want to halve the colour with each step as in your example
this is fairly easy. My 16bit shadow routine does it this way: (d5 is
preset to %1110111101111011 for mode 32 and %0111101111011110 for mode
33)
move.w (a1)+,d0 ; gggbbbbbrrrrrggg (mode 32 example)
ror.w #1,d0 ; ggggbbbbbrrrrrgg
and.w d5,d0 ; ggg0bbbb0rrrr0gg = 1/2 RGB factors
> Would ORing with a predetermined bit mask would be best or something else?
OR always adds something to some data. You can't fade something out
with it ;-)
Marcel