TriC
TriC x1, y1, x2, y2, y3, y3, RgbColour
 
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
    y3 = X coordinate of point 3
    y3 = Y coordinate of point 3
    RgbColour = The RGB colour value this polygon is drawn in
Returns: NONE
 

      TriC draws a filled triangle to the current surface using the a user defined colour in the current InkMode.



FACTS:


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

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





Mini Tutorial:


      This example draws two filled triangles to the screen.

  
; Draw a triangle in the current ink colour
  Tri 100,100,300,150,200,200
  
; Draw a triangle in user defined colour  (green in this case)
  TriC 100,300,300,350,200,400,RGB(00,255,00)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




 
Related Info: Box | GouraudQuad | GouraudStripH | GouraudStripV | GouraudTri | InkMode | LockBuffer | Quad | QuadC | ShadeBox | TextureQuad | TextureStripH | TextureStripV | TextureTri | Tri :
 


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