transition

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package transition provides theme-token-specific colour interpolation helpers built on github.com/vibrantgio/pulse/tween.

pulse/tween owns the generic Tween[T] machinery and the per-channel LerpNRGBA primitive; this package keeps the integration with tokens.ColorTokens (LerpColorTokens, ColorTokensTween) that bridges generic tweening to the prism theme contract.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorTokensTween

func ColorTokensTween(a, b tokens.ColorTokens, frames int) tween.Tween[tokens.ColorTokens]

ColorTokensTween constructs a tween.Tween interpolating from a to b over frames frames, using LerpColorTokens. This is the integration bridge between the generic Tween and the prism theme contract.

func LerpColorTokens

func LerpColorTokens(from, to tokens.ColorTokens, t float64) tokens.ColorTokens

LerpColorTokens interpolates each colour field of two tokens.ColorTokens using tween.LerpNRGBA.

Types

This section is empty.

Jump to

Keyboard shortcuts

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