Skip to main content

Rectangle

Displays a filled rectangle.

component Rectangle

Example

import { Rectangle } from ui

export var main = Rectangle(color: Color(0xFFFF0000))

Constructor

constructor(color: Color, radius: Float = 0.0)
color: Color

The fill color.

See Color

radius: Float = 0.0

The radius for rounding the corners.

Layout Behavior

Fills the available area.