HslColor

class HslColor(hue: Measure<Angle>, val saturation: Float, val lightness: Float, val opacity: Float = 1.0f)

Represents an HSL color.

Parameters

hue

component

Constructors

Link copied to clipboard
constructor(hue: Measure<Angle>, saturation: Float, lightness: Float, opacity: Float = 1.0f)

creates a Color

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Hue component

Link copied to clipboard

component

Link copied to clipboard
val opacity: Float = 1.0f

of the color

Link copied to clipboard

component

Link copied to clipboard

true if opacity 0

Inherited properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard
fun HslColor.darker(percent: Float = 0.5f): HslColor

Makes this color darker by the given percent.

Link copied to clipboard
fun HslColor.lighter(percent: Float = 0.5f): HslColor

Makes this color lighter by the given percent.

Link copied to clipboard