Circle
Circle Xpos, Ypos, Radius, [FillMode=1]
 
Parameters:

    Xpos = The X coordinate for the center of the circle
    Ypos = The Y coordinate for the center of the circle
    Radius = The Radius of the circle
    [FillMode=1] = Toggle for drawing the circle as either open (0) or filled (1)
Returns: NONE
 

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

Available FILL MODES Values

      0 = Open Circle (only draws the outline)
      1 = Filled Circle



FACTS:


      * Circle draws it's pixels in the current INK colour & InkMode. PlayBASIC sets the default INK colour to Rgb(255,255,255) (white). You can change this at any time by using the INK command, or use CircleC which doesn't alter the current ink colour.

      * Circle 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.

      * Circles outside of the current surfaces viewport area will be clipped to the area.



Mini Tutorial:


      Draw some random open and filled circles 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 circles
  For lp =0 To 100
     
   ; Set the graphics INK colour to a random colour
     Ink RndRGB()
     
   ; Draw a Circle to the screen of random size (0 to 100) and either filled or outlined
     Circle Rnd(sw),Rnd(sh),Rnd(100),Rnd(1)
     
  Next
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



 
Related Info: CircleC | Ellipse | EllipseC | Ink | InkAlpha | InkMode :
 


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