functions

RectangleFilled
Edited: Sunday 25 January 2026

RectangleFilled

Category: Molecules
File: molecules.go
Package: ui

Signature

1func RectangleFilled(width, height int, fill color.NRGBA) W

Description

RectangleFilled renders a filled rectangle with the specified dimensions and color.
This is a low-level primitive used to create solid rectangular shapes.

Example:

rect := RectangleFilled(100, 50, color.NRGBA{G: 255, A: 255})  // 100x50 green rectangle

Foundation for creating colored backgrounds, bars, and decorative elements.

Examples

RectangleFilled

1{
2	rect := RectangleFilled(100, 50, LIME_500)
3	_ = rect
4}

Example Output


This documentation is auto-generated. To update, run make docs

Backlinks