blend

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cam16Ucs

func Cam16Ucs(from color.ARGB, to color.ARGB, amount float64) color.ARGB

Cam16Ucs returns a color interpolated between two colors in CAM16-UCS space. All perceptual attributes (hue, chroma, tone) are blended linearly based on amount, where 0.0 yields from and 1.0 yields to.

func Harmonize

func Harmonize(designColor color.ARGB, sourceColor color.ARGB) color.ARGB

Harmonize returns a color whose hue is shifted toward the hue of sourceColor. The hue of designColor is rotated by up to 15 degrees toward sourceColor, while preserving its original chroma and tone.

func HctHue

func HctHue(from color.ARGB, to color.ARGB, amount float64) color.ARGB

HctHue returns a color with its hue blended toward another color in HCT space. The chroma and tone of from are preserved. The amount must be in [0.0, 1.0], where 0.0 yields from and 1.0 yields to.

func HctHueDirect

func HctHueDirect(from color.ARGB, to color.ARGB, amount float64) color.Hct

HctHueDirect returns a color with its hue blended toward another color in HCT space. The chroma and tone of from are preserved. The amount must be in [0.0, 1.0], where 0.0 yields from and 1.0 yields to. Returns Hct representation of new color.

Types

This section is empty.

Jump to

Keyboard shortcuts

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