Ah good... I'd forgotten about that 'c' value. :)
On 11/17/06, Ian Larsen <dr...@gm...> wrote:
> The POLY command looks great, I just merged it in, along with colour.
>
> I added a line to delete the "c" value that gets popped off the stack,
> otherwise this would leak memory, and it wouldn't be noticeable until
> the POLY command was used in a loop. I've gotten bitten by this bug a
> few times now. :-)
>
> -Ian
>
>
>
> On 11/16/06, Ferry Hendrikx <fer...@gm...> wrote:
> > Ian asked me to look into writing a polygon function. This is now
> > finished and is in my SVN branch.
> >
> > To use the new function, simply define a number of points in an array,
> > and then pass this plus the number of pairs you want to plot to the
> > polygon function. For example, the following code will plot a
> > triangle:
> >
> > clg
> > dim test(6)
> > test[0] = 10
> > test[1] = 80
> > test[2] = 20
> > test[3] = 10
> > test[4] = 80
> > test[5] = 30
> > colour blue
> > poly test, 3
> >
> > Cheers
> >
> > /Ferry
> >
|