UI module

draw_rect

procedure · 1 overloadsince 0.31.0Source

Fill rect with color; radius rounds the corners and border draws an outline inside.

draw_rect :: (
    ui: *UI_State,
    rect: Rect,
    color: Color,
    radius: float = 0,
    border: float = 0,
    border_color: Color = .{}
)

Fill rect with color; radius rounds the corners and border draws an outline inside.

Parameters

ui: *UI_State
the UI whose display list gets the entry.
rect: Rect
the area to fill, in points.
color: Color
the fill colour.
radius: float
corner radius in points.
border: float
outline width in points.
border_color: Color
outline colour.

See also