functions
RectangleFilled| modified | Sunday 25 January 2026 |
|---|
Category: Molecules
File: molecules.go
Package: ui
1func RectangleFilled(width, height int, fill color.NRGBA) W
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.
1{
2 rect := RectangleFilled(100, 50, LIME_500)
3 _ = rect
4}

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