From: Ian L. <dr...@gm...> - 2006-11-16 23:39:41
|
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 > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Kidbasic-devel mailing list > Kid...@li... > https://lists.sourceforge.net/lists/listinfo/kidbasic-devel > |