Lines Matching refs:Rgba
112 data class Rgba( class
118 operator fun plus(other: Rgba) = in plus()
119 Rgba(r + other.r, g + other.g, b + other.b, a + other.a).clampToUByteRange() in plus()
121 operator fun minus(other: Rgba) = in plus()
122 Rgba(r - other.r, g - other.g, b - other.b, a - other.a).clampToUByteRange() in plus()
124 operator fun times(other: Rgba) = Rgba(r * other.r, g * other.g, b * other.b, a * other.a) shr 8 in plus()
125 operator fun times(scalar: Int) = Rgba(r * scalar, g * scalar, b * scalar, a * scalar) shr 8 in plus()
127 infix fun xor(other: Rgba) = Rgba(r xor other.r, g xor other.g, b xor other.b, a xor other.a) in plus()
129 infix fun shr(other: Int) = Rgba(r shr other, g shr other, b shr other, a shr other) in plus()
131 private fun clampToUByteRange() = Rgba( in plus()
246 operator fun get(x: Int, y: Int): Rgba { in get()
248 return Rgba( in get()
256 operator fun set(x: Int, y: Int, value: Rgba) { in set()