Ellipse
Ellipse Xpos, Ypos, RadiusX, RadiusY, FillFlag
 
Parameters:

    Xpos = The X coordinate for the center of the ellipse
    Ypos = The Y coordinate for the center of the ellipse
    RadiusX = The radius of of the ellipse along the X axis
    RadiusY = The radius of of the ellipse along the Y axis
    FillFlag = Toggle for drawing the ellipse as either open or filled
Returns: NONE
 

      Ellipse draws either a filled or open Ellipse to the current surface (screen or image).


Available FILL MODES Values

      0 = Open Ellipse (only draws the edges)
      1 = Filled Ellipse



FACTS:


      * Ellipse draws it's pixels in the current INK colour & InkMode.

      * Ellipse will render to the current surface, except when the user has either CaptureToScene, or CaptureToWorld are activated. In either situation the drawing request will be added to the scene or world queues.

      * Ellipses outside of the current surfaces size or viewport will be clipped to the area.



Mini Tutorial:


      Draw some random open / filled ellipses to the screen.

  
  
; Get the Current Width & Height of the screen
  sw=GetScreenWidth()
  sh=GetScreenHeight()
  
; Set up a FOR/NExt counting for 0 to 100.  So it will draw 100 ellipses
  For lp =0 To 100
     
   ; Set the graphics INK colour to a random colour
     Ink RndRGB()
     
   ; Draw an Ellipse to the screen of random size
   ;   It's width will be in between (0 to 100)
   ;   It's height will be in between (0 to 200)
     
     Ellipse Rnd(sw),Rnd(sh),Rnd(100),Rnd(100),Rnd(1)
     
  Next
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



 
Related Info: Circle | CircleC | EllipseC | Ink | InkMode :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com