Gradient
class Gradient @JvmOverloads constructor(color1: Color, color2: Color, val type: PolyColor.Gradient.Type = Type.TopLeftToBottomRight) : PolyColor.Animated
A gradient color.
Constructors
Link copied to clipboard
constructor(color1: Color, color2: Color, type: PolyColor.Gradient.Type = Type.TopLeftToBottomRight)
Properties
Link copied to clipboard
The brightness of this color. Clamped between 0f..1f.
Link copied to clipboard
WARNING: the following code will NOT behave as expected:
Link copied to clipboard
Link copied to clipboard
The saturation of this color. Clamped between 0f..1f.
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
@ApiStatus.Experimental
Make the given color chroma, meaning it will change its hue over time.
Link copied to clipboard
Deprecated, see Component.recolor for how to animate gradients.
Animated.recolor this gradient color.
Link copied to clipboard
Link copied to clipboard
Return a static java Color object of this color at the instant this method is called.