Tri
Tri x1, y1, x2, y2, y3, y3
 
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
Returns: NONE
 

      Tri draws a filled triangle to the current surface using the current INK colour and drawing mode.



FACTS:


      * Tri draws pixels in the current INK colour. PlayBASIC sets the default INK colour to RGB(255,255,255) (white). You can change this at any time by using the INK command.

      * Tri draws pixels using the current InkMode.

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





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: GouraudQuad | GouraudStripH | GouraudStripV | GouraudTri | Quad | QuadC | ShadeBox | TextureQuad | TextureStripH | TextureStripV | TextureTri | TriC :
 


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