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.