functions

SquareOutline
Edited: Sunday 25 January 2026

SquareOutline

Category: Molecules
File: molecules.go
Package: ui

Signature

1func SquareOutline(size int, stroke color.NRGBA, width float32) W

Description

SquareOutline renders a square outline with the specified size, color, and stroke width.
This is a convenience wrapper around RectangleOutline with equal dimensions.

Example:

square := SquareOutline(50, color.NRGBA{B: 255, A: 255}, 2.0)  // Blue outlined square

Useful for creating bordered boxes or selection indicators.

Examples

SquareOutline

1{
2	square := SquareOutline(50, BLUEBERRY_500, 2.0)
3	_ = square
4}

Example Output


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

Backlinks