A86: Re: box drawing


[Prev][Next][Index][Thread]

A86: Re: box drawing




Yes, that is exactly right.  They have to be in the first column, however.

> i have two questions.
> first, this is kind of silly, but for constants, would i define them like
this?
> MAXLIVES = 5

You have to do it yourself.  You could use _ILine to draw the border, or you
could do it yourself (much faster).  To do the inside, it's similiar to a
putsprite routine.  Create masks for the right and left edge.  Example...

 left_x = 3  (so you want to start filling with white on the fifth pixel)
 left_mask = %11110000

right_x = 49 (so you want the first pixel)
right_mask = %01111111

You then do an AND operation with the mask for the two edge bytes.  For the
middle, just set the bytes to zero.

> second, how would i draw a box with the inside filled in with white?
would i have to draw it manually
> with the iline routine (or others if there are some better ones) or is
there a box routine somewhere?
> also, then how would i clear the space inside of the box?




References: