functions

SquareFilled
Edited: Sunday 25 January 2026

SquareFilled

Category: Molecules
File: molecules.go
Package: ui

Signature

1func SquareFilled(size int, fill color.NRGBA) W

Description

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.

Examples

SquareFilled

1{
2	square := SquareFilled(50, STRAWBERRY_500)
3	_ = square
4}

Example Output


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

Backlinks