Home       Comp Core Examples       Comp Projects

rect

rect comp will draw an empty rectangle on the screen. The color prop is the color of the line bounding the rect.

This is the second best (after fillRect) component to get started with this library since it has all the Base Props implemented with no comp props

Arg Name Arg Type Explanation
color string color of the rectangle

rect has no comp props.