Mutable

Constructors

Link copied to clipboard
constructor(color1: PolyColor.Mutable, color2: PolyColor.Mutable, type: PolyColor.Gradient.Type)

Properties

Link copied to clipboard
@get:JvmName(name = "alpha")
open override 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
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")
open override 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
open override val color2: PolyColor.Mutable
Link copied to clipboard
@get:JvmName(name = "green")
open override 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
@get:JvmName(name = "red")
open override 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
open override val saturation: Float

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

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

Functions

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
operator fun set(index: Int, to: PolyColor)
Link copied to clipboard
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
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun update(deltaTimeNanos: Long): Boolean