functions
RectangleOutline| modified | Sunday 25 January 2026 |
|---|
Category: Molecules
File: molecules.go
Package: ui
1func RectangleOutline(width, height int, stroke color.NRGBA, strokeWidth float32) W
RectangleOutline renders a rectangle outline with specified dimensions, color, and stroke width.
Creates a hollow rectangular border without filling the interior.
Example:
rect := RectangleOutline(100, 50, color.NRGBA{R: 255, A: 255}, 1.5) // Red outlined box
Useful for creating focus indicators, selection boxes, or decorative borders.
1{
2 rect := RectangleOutline(100, 50, ORANGE_500, 1.5)
3 _ = rect
4}

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