HsvColor

class HsvColor(hue: Measure<Angle>, val saturation: Float, val value: Float, val opacity: Float = 1.0f)(source)

Represents an HSV color.

Parameters

hue

component

Constructors

Link copied to clipboard
constructor(hue: Measure<Angle>, saturation: Float, value: 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

of the color

Link copied to clipboard

component

Link copied to clipboard

component

Link copied to clipboard

true if opacity> 0

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
infix fun HsvColor.lightness(value: Float): HsvColor

Creates a new color like this one except with the given lightness (value).

Link copied to clipboard

Creates a new color like this one except with the given opacity.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String