Table of Contents

draw line from () () to () () color ()

draw line block

Description

Draw line from () () to () () color () block is a stack block available in evive display extension. The block allows you to enter the coordinates of two points on the TFT display and joins them using a straight line of the specified color which you can choose from the color picker.

evive TFT Display Draw Line

Input Parameters

  1. X position of the first pixel of the line.
  2. Y position of the first pixel of the line.
  3. X position of the second pixel of the line.
  4. Y position of the second pixel of the line.
  5. The color of the line.
evive Notes Icon
Note: This block is available in both Upload mode and Stage mode.

Example

  1. In this script, we draw a red colored line from the point (10, 10) to (150, 118).
    draw line example

Example

There are no examples documented for this article.