Documentation
¶
Overview ¶
Author: HyperparameterSI
Package borderbeam ports the five Border Beam presets to Golet native UI. Color fields, masks and Gaussian bloom run in Go without a browser runtime. Reference source and MIT attribution are in reference/.
Author: HyperparameterSI Port of Frad's WGSL color fields. See reference/LICENSE for upstream credits.
Author: HyperparameterSI Native composition of the reference color fields and CSS masks.
Code generated by go generate; DO NOT EDIT. Derived from Frad / Jakub Antalik border-beam; MIT, see reference/LICENSE.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Box ¶
Box creates a normal layout container with decorative light over its border. Children remain interactive and accessible. It follows reduced motion and only requests repaint frames while visible and animated. Use a stable Key on an enclosing element when showing several reorderable containers.
Types ¶
type Options ¶
type Options struct {
// Preset selects Medium, Small, Line, PulseInner, or PulseOutside.
Preset Preset
// Brightness and Saturation override reference defaults when positive.
Brightness, Saturation float32
// HueRange overrides the rotating presets' hue excursion in degrees.
HueRange float32
// StaticColors disables hue changes, while retaining spatial animation.
StaticColors bool
// Strength scales the light from 0 to 1; zero selects the default 0.7. Use Disabled to hide it.
Strength float32
// Glow is the inward mask depth in DIPs, default 28, maximum 48.
Glow float32
// Palette selects the built-in colors when Colors is empty.
Palette Palette
// Radius is the container's corner radius; defaults to 16.
Radius float32
// Width is the crisp border width; defaults to 1, limited to 8.
Width float32
// Duration is one animation cycle; defaults to the reference preset cycle.
Duration time.Duration
// Colors is a cyclic palette, copied when Box is built. Empty uses the theme accent.
Colors []ui.Color
// Mode selects Rotate (default) or Pulse.
Mode Mode
// Paused holds the current animation phase, resuming from it when cleared.
Paused bool
// Disabled removes the effect and stops requesting frames.
Disabled bool
}
Options configure a border. Zero values select the defaults documented below. Dimensions are in DIPs. Allow at least 12 DIPs of padding for content. PulseOutside also needs surrounding space for its exterior glow.