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

triangle block

() 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

Content is available under CC BY-SA 4.0 unless otherwise noted.

Related Tutorials, Projects & Documentation
Dabble Home Connected

Getting Started with Dabble

Getting Started with Dabble Introduction Dabble App transforms your Smartphone into a virtual I/O device and lets you control hardware using Bluetooth, communicate with it,…
PictoBlox blocks Scratch how to

Getting Started with PictoBlox

PictoBlox is a programming software based on Scratch, where you can make interactive games, animations or program robots and projects with evive, Arduino, etc..
All articles loaded
No more articles to load
PictoBlox Supported Boards
Extensions
Close Menu
×

Cart