blend

package
v0.0.4-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 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 blends from towards to in CAM16-UCS color space. Hue, chroma, and tone will all change. amount must be between 0.0 and 1.0.

func Harmonize

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

Harmonize adjusts the hue of designColor to be closer to the hue of sourceColor. It rotates the hue of designColor towards sourceColor by up to 15 degrees. The chroma and tone of designColor are preserved.

func HctHue

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

HctHue blends the hue of from towards the hue of to in HCT color space. The chroma and tone of from are preserved. amount must be between 0.0 and 1.0.

Types

This section is empty.

Jump to

Keyboard shortcuts

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