[Coco] help with drawing
Robert Emery
theother_bob at yahoo.com
Wed Feb 23 12:35:15 EST 2005
--- Mark McDougall <msmcdoug at optushome.com.au> wrote:
> Andrew wrote:
>
> > Something that I have been trying to do on occasion is HGET/HPUT sprite
> > masking - but it is like the boolean operators don't work correctly for
> > the mask. I should be able to make a black and white mask of the sprite,
> > lay the mask down with HPUT via an AND, then lay the sprite down via an
> > OR - but it has yet to never work - anybody know what I am doing wrong,
> > or what I am wrongly assumming?
>
> What are the symptoms?
>
Jusr re-reading the original post, I had some thoughts...
First of all, I presume the OP is finding that colors come out wrong after
HPUTing the final graphic.
The actual color used for the "mask" is not important... it's the palette
number that is ANDed or ORed. So you need to use palettes 0 and 15 for your
"black and white" mask, regardless of what color they are set to.
The bits that make up HSCREEN2 graphics are palette numbers, not colors.
Bob
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
More information about the Coco
mailing list