CircleC
CircleC Xpos, Ypos, Radius, FillMode, RgbColour
 
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 = Toggle for drawing the circle as either open(0) or filled(1)
    RgbColour = The Colour of this Circle in RGB format
Returns: NONE
 

      CircleC draws either a filled or open Circle to the current surface. Rather than using the current Ink colour to draw the circle in, the user provides it.


Available FILL MODES Values

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




FACTS:

      * CircleC does not effect the current INK colour, but is drawn using the current InkMode

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

      * CircleC 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
     
   ; Draw a Circle to the screen of random size (0 to 100) and either filled or outlined
     CircleC Rnd(sw),Rnd(sh),Rnd(100),Rnd(1),RndRGB()
     
  Next
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



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


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