effects

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confetti

func Confetti(ps *animation.ParticleSystem, x, y int, count int)

Confetti emits a burst of confetti particles.

func Glow

func Glow(canvas *graphics.Canvas, cx, cy, radius int, color backend.Color, intensity float64)

Glow creates a glow effect around a point.

func LinearGradient

func LinearGradient(canvas *graphics.Canvas, x, y, w, h int, startColor, endColor backend.Color, angle float64)

LinearGradient fills a region with a linear gradient.

func RadialGradient

func RadialGradient(canvas *graphics.Canvas, cx, cy, radius int, centerColor, edgeColor backend.Color)

RadialGradient fills a region with a radial gradient.

func Ripple

func Ripple(canvas *graphics.Canvas, cx, cy int, radius, maxRadius int, color backend.Color, thickness float64)

Ripple creates an expanding ring effect.

func Shadow

func Shadow(canvas *graphics.Canvas, x, y, w, h, offsetX, offsetY, blur int, color backend.Color)

Shadow draws a drop shadow.

func Shimmer

func Shimmer(canvas *graphics.Canvas, x, y, w, h int, phase float64, color backend.Color)

Shimmer creates a loading skeleton effect.

func Sparkle

func Sparkle(ps *animation.ParticleSystem, x, y, w, h int, density float64)

Sparkle emits small sparkles in a region.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL