Table of Contents

() round rectangle from () () of width () height () radius () color ()

Description

() round rectangle from () () of width () height () radius () color () block is a stack block available in evive display extension. The block is used to draw the outline or a filled rectangle with rounded corners. It takes the following parameters as input: fill/draw, starting coordinates, width, height, the radius at corners and color. It draws a rectangle rounded at edges where the radius is input by the user.

evive TFT Display Filled RectangleDraw a filled rectangle with round edges on evive display.

evive TFT Display Round Rectangle Outline

Draw the outline of a rectangle with round edges on evive display.

Input Parameters

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

Example

  1. The script draws the outline of a round rectangle with width 140 and height 108.
    draw round rectangle example
  2. The script draws a filled round rectangle with width 140 and height 108.
    fill round rectangle example

 

Example

There are no examples documented for this article.