Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Windows and Linux version 1.0.2 released
#1
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.
Reply
#2
Many thanks Marcus - this will be a really useful command.......
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)