RGBAf

inline class RGBAf(val data: FloatArray)

Constructors

Link copied to clipboard
constructor(r: Float = 1.0f, g: Float = 1.0f, b: Float = 1.0f, a: Float = 1.0f)
constructor(color: RGBA)
constructor(data: FloatArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var a: Float
Link copied to clipboard
var ad: Double
Link copied to clipboard
val ai: Int
Link copied to clipboard
var b: Float
Link copied to clipboard
var bd: Double
Link copied to clipboard
val bi: Int
Link copied to clipboard
Link copied to clipboard
var g: Float
Link copied to clipboard
var gd: Double
Link copied to clipboard
val gi: Int
Link copied to clipboard
var r: Float
Link copied to clipboard
var rd: Double
Link copied to clipboard
val rgba: RGBA
Link copied to clipboard
val ri: Int

Functions

Link copied to clipboard
fun add(r: Float, g: Float, b: Float, a: Float): RGBAf
Link copied to clipboard
fun clamp(): RGBAf
Link copied to clipboard
fun copyFrom(that: RGBAf): RGBAf
Link copied to clipboard
fun readFrom(out: FloatArray, index: Int = 0)
Link copied to clipboard
fun setTo(color: RGBA): RGBAf
fun setTo(color: RGBAf): RGBAf
fun setTo(r: Float, g: Float, b: Float, a: Float): RGBAf
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun toRGBA(): RGBA
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard
fun writeTo(out: FloatArray, index: Int = 0)