QuadC
QuadC x1, y1, x2, y2, x3, y3, x4, y4, Colour
 
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
    Colour = The RGB colour value this polygon is drawn in
Returns: NONE
 

      QuadC draws a filled quad to the current surface using the current Inkmode



FACTS:


      * The QuadC filler only supports convex polygons.

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

      * QuadC 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 | Quad | TextureQuad | TextureTri | Tri | TriC :
 


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