Re: [AD] About colors

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2010-06-14, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> On Mon, June 14, 2010 4:49 pm, Peter Wang said:
> > No, it also makes perfect sense if you think of a pixel as a 1x1 square.
> > To fill the square you need to start drawing from (x1,y1) and keep
> > drawing right up to the other corner of the pixel at (x1+1, y1+1).
> >
> > I believe this way of thinking extends to 3D more naturally.
> 
> Well regardless of which way seems best (and there is not agreement
> on that it seems), using width and height instead of end parameters
> removes all guessing.

Though (x2,y2) coordinates are consistent with al_draw_line,
al_draw_triangle, al_draw_prim, etc.

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/