BoxC
BoxC X1, Y1, X2, Y2, FillMode, RGB
 
Parameters:

    X1 = The top left hand X coordinate of the box
    Y1 = The top left hand Y coordinate of the box
    X2 = The bottom right hand X coordinate of the box
    Y2 = The bottom right hand Y coordinate of the box
    FillMode = Toggle for drawing the rectangle as either open (0) or filled (1)
    RGB = The Colour of the pixel in RGB format
Returns: NONE
 

      BoxC draws a coloured filled or open rectangle to the current surface.


      Available FILL MODES Values

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



FACTS:


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

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

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




Mini Tutorial:


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



 
Related Info: Box | Cls | Copyrect | Dot | DotC | Ink | Quad | ShadeBox | TextureQuad | Tri :
 


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