EllipseC
EllipseC Xpos, Ypos, RadiusX, RadiusY, FillMode, Colour
 
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
    FillMode = Toggle for drawing the ellipse as either open (0) or filled (1)
    Colour = The Colour of this Ellipse in RGB format
Returns: NONE
 

      EllipseC draws either a filled or open EllipseC to the current surface.


Available FILL MODES Values

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




FACTS:


      * EllipseC does not effect the current INK colour, and is drawn using the current InkMode

      * EllipseC 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 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
     
   ; Draw an Ellipse to the screen of random size and colour
   ;   It's width will be in between (0 to 100)
   ;   It's height will be in between (0 to 200)
     
     EllipseC Rnd(sw),Rnd(sh),Rnd(100),Rnd(100),Rnd(1),RndRGB()
     
  Next
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



 
Related Info: Box | Circle | CircleC | Dot | Ellipse | Ink | InkMode | Line :
 


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