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

round rectangle block

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

 

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

Related Tutorials, Projects & Documentation
evive-brain

Interfacing evive with PictoBlox

This tutorial discusses how to interface evive with PictoBlox, the evive palette, the two modes for writing scripts in PictoBlox, and how to upload a script to evive.
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