Quad
Quad x1, y1, x2, y2, x3, y3, x4, y4
 
Parameters:

    x1 = X coordinate of point 1
    y1 = Y coordinate of point 1
    x2 = X coordinate of point 2
    y2 = Y coordinate of point 2
    x3 = X coordinate of point 3
    y3 = Y coordinate of point 3
    x4 = X coordinate of point 4
    y4 = Y coordinate of point 4
Returns: NONE
 

      Quad draws a filled quad to the current surface using the current ink colour and InkMode.



FACTS:


      * The Quad filler only supports convex polygons.

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





Mini Tutorial:


      This example draws two filled quads to the screen.

  
  
; Draw a filled quad in the current ink colour
  Quad 100,100,300,150,200,200,50,100
  
; Draw a quad in the user defined colour  (green in this case)
  QuadC 100,300,300,350,200,400,50,300,RGB(0,255,0)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  
  




 
Related Info: GouraudQuad | GouraudTri | QuadC | TextureQuad | TextureTri | Tri | TriC :
 


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