Table of Contents

() triangle from point 1 () () point 2 () () point 3 () () color ()

Description

() triangle from point 1 () () point 2 () () point 3 () () color () block is a stack block available in evive display extension. The block is used to draw an outline of the triangle or a filled triangle from points on evive TFT display. It takes the color and the 3 points for the corner of the triangle to draws a triangle.

evive TFT Display Filled TriangleDraw a filled triangle on evive display.

evive TFT Display Triangle OutlineDraw the outline of a triangle on evive display.

Input Parameters

  1. Draw (only parameter) or fill (complete triangle) option.
  2. X position of the first pixel of the triangle.
  3. Y position of the first pixel of the triangle.
  4. X position of the second pixel of the triangle.
  5. Y position of the second pixel of the triangle.
  6. X position of the third pixel of the triangle.
  7. Y position of the third pixel of the triangle.
  8. The color of the triangle.
evive Notes Icon
Note: This block is available in both Upload mode and Stage mode.

Example

  1. Outline of a triangle.
    draw triangle example
  2. Filled triangle.
    draw triangle example

Example

There are no examples documented for this article.