HsvColor

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

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
val opacity: Float = 1.0f

of the color

Link copied to clipboard

component

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

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

Link copied to clipboard