HueShiftableColor

Represents a color interface capable of hue manipulation.

Provides functionality to shift, modify, and mix hues while maintaining the color representation.

Parameters

T

the type of color returned by this interface.

Inheritors

Properties

Link copied to clipboard
abstract val hue: Double

Represents the hue component of a color, expressed in degrees.

Functions

Link copied to clipboard
open fun mixHue(hue: Double, factor: Double): T

Mixes the current hue with the specified hue using a linear interpolation factor.

Link copied to clipboard
open fun shiftHue(shiftInDegrees: Double): T

Shift the hue of a color by the given amount of degrees.

Link copied to clipboard
abstract fun withHue(hue: Double): T

Creates a new color instance with the specified hue value.