functions
SquareFilled| modified | Sunday 25 January 2026 |
|---|
Category: Molecules
File: molecules.go
Package: ui
1func SquareFilled(size int, fill color.NRGBA) W
SquareFilled renders a filled square with the specified size and color.
This is a convenience wrapper around RectangleFilled with equal dimensions.
Example:
square := SquareFilled(50, color.NRGBA{R: 255, A: 255}) // 50x50 red square
Use this for icons, indicators, or decorative elements.
1{
2 square := SquareFilled(50, STRAWBERRY_500)
3 _ = square
4}

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