Constructors

Link copied to clipboard

Properties

Link copied to clipboard
@get:JvmName(name = "alpha")
val a: Int

alpha value of this color, from 0 to 255

Link copied to clipboard
@get:JvmName(name = "alpha2")
val a2: Int
Link copied to clipboard
open override val alpha: Float

The alpha of this color. Clamped between 0f..1f.

Link copied to clipboard
Link copied to clipboard
open override val argb: Int

return an integer representation of this color. Utilizes bit-shifts to store the color as one 32-bit integer, like so:

Link copied to clipboard
val argb2: Int
Link copied to clipboard
@get:JvmName(name = "blue")
val b: Int

blue value of this color, from 0 to 255

Link copied to clipboard
@get:JvmName(name = "blue2")
val b2: Int
Link copied to clipboard
open override val brightness: Float

The brightness of this color. Clamped between 0f..1f.

Link copied to clipboard
Link copied to clipboard
open override val color1: PolyColor.Animated
Link copied to clipboard
open override val color2: PolyColor.Animated
Link copied to clipboard
@get:JvmName(name = "green")
val g: Int

green value of this color, from 0 to 255

Link copied to clipboard
@get:JvmName(name = "green2")
val g2: Int
Link copied to clipboard
open override val hue: Float

The hue of this color. Can be any value, but is mod 360, so values are always between 0 and 360.

Link copied to clipboard
val hue2: Float
Link copied to clipboard
@get:JvmName(name = "red")
val r: Int

red value of this color, from 0 to 255

Link copied to clipboard
@get:JvmName(name = "red2")
val r2: Int
Link copied to clipboard
val rgba: Int
Link copied to clipboard
open override val saturation: Float

The saturation of this color. Clamped between 0f..1f.

Link copied to clipboard
Link copied to clipboard
open override val transparent: Boolean
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun get(index: Int): PolyColor
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open override fun recolor(to: PolyColor, animation: Animation?): PolyColor.Gradient.Animated
open fun recolor(index: Int, to: PolyColor, animation: Animation? = null)
Link copied to clipboard
operator fun set(index: Int, to: PolyColor)
Link copied to clipboard
fun PolyColor.toHex(alpha: Boolean = true, hash: Boolean = true): String
Link copied to clipboard

Return a static java Color object of this color at the instant this method is called.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun update(deltaTimeNanos: Long): Boolean