NaaLaa Forum
Windows and Linux version 1.0.2 released - Printable Version

+- NaaLaa Forum (http://www.naalaa.com/community)
+-- Forum: NaaLaa (http://www.naalaa.com/community/forumdisplay.php?fid=1)
+--- Forum: Announcements (http://www.naalaa.com/community/forumdisplay.php?fid=2)
+--- Thread: Windows and Linux version 1.0.2 released (/showthread.php?tid=41)



Windows and Linux version 1.0.2 released - Marcus - 04-01-2018

I have now added the draw ellipse command to both the Windows and Linux versions.

Windows: http://naalaa.com/msi/N6_1_0_2.msi
Linux: http://naalaa.com/release/naalaa6_1.0.2_x86_64.tar.gz

The syntax is: draw ellipse center_x, center_y, radius_x, radius_y[, filled]

Example:

Code:
set redraw off
do
 ' Set random color.
 set color rnd(256), rnd(256), rnd(256), rnd(256)
 ' Draw random filled ellipse.
 draw ellipse rnd(640), rnd(480), 16 + rnd(64), 16 + rnd(64), true
 ' Draw random unfilled ellipse.
 draw ellipse rnd(640), rnd(480), 16 + rnd(64), 16 + rnd(64), false
 redraw
 wait 16
until keydown(27, true)

If you want to draw circles, use the same value for radius_x and radius_y.


RE: Windows and Linux version 1.0.2 released - kcfb - 04-01-2018

Many thanks Marcus - this will be a really useful command.......