Companion

object Companion

Functions

Link copied to clipboard
fun from(other: DynamicScheme, isDark: Boolean): DynamicScheme

Returns a new DynamicScheme instance with the same properties as the given scheme, but with the given dark mode setting.

Link copied to clipboard
fun getPiecewiseValue(sourceColorHct: Hct, hueBreakpoints: DoubleArray, hues: DoubleArray): Double

Returns a new hue based on a piecewise function and input color hue.

Link copied to clipboard
fun getRotatedHue(sourceColorHct: Hct, hueBreakpoints: DoubleArray, rotations: DoubleArray): Double

Returns a shifted hue based on a piecewise function and input color hue.