Table of Contents

() rectangle from () () of width () & height () & () color

Description

() rectangle from () () of width () & height () & () color block is a stack block available in evive display extension. The block is used to draw or fill a rectangle on the evive TFT display. It takes the coordinates of a point as input alongside the required width, height, and color and draws/fill the rectangle.

evive TFT Display Draw ReechangleDraw a filled rectangle on evive Display

evive TFT Display Rectangle Outline

Draw a rectangle outline on evive display

Input Parameters

  1. Draw (only parameter) or fill (complete rectangle) option.
  2. X position of the top left corner pixel of the rectangle.
  3. Y position of the top left corner pixel of the rectangle.
  4. The width of the rectangle in pixels.
  5. The height of the rectangle in pixels.
  6. The color of the rectangle.
evive Notes Icon
Note: This block is available in both Upload mode and Stage mode.

Example

  1. This script draws a rectangle 140 units in width and 108 units in height.
    draw rectangle example
  2. This script draws a filled rectangle 140 units in width and 108 units in height.
    fill rectangle example

Example

There are no examples documented for this article.