toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.image.color
/
RGBAf
RGBAf
inline
class
RGBAf
(
val
data
:
FloatArray
)
Members
Constructors
RGBAf
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
Companion
Link copied to clipboard
object
Companion
Properties
a
Link copied to clipboard
var
a
:
Float
ad
Link copied to clipboard
var
ad
:
Double
ai
Link copied to clipboard
val
ai
:
Int
b
Link copied to clipboard
var
b
:
Float
bd
Link copied to clipboard
var
bd
:
Double
bi
Link copied to clipboard
val
bi
:
Int
data
Link copied to clipboard
val
data
:
FloatArray
g
Link copied to clipboard
var
g
:
Float
gd
Link copied to clipboard
var
gd
:
Double
gi
Link copied to clipboard
val
gi
:
Int
r
Link copied to clipboard
var
r
:
Float
rd
Link copied to clipboard
var
rd
:
Double
rgba
Link copied to clipboard
val
rgba
:
RGBA
ri
Link copied to clipboard
val
ri
:
Int
Functions
add
Link copied to clipboard
fun
add
(
r
:
Float
,
g
:
Float
,
b
:
Float
,
a
:
Float
)
:
RGBAf
clamp
Link copied to clipboard
fun
clamp
(
)
:
RGBAf
copy
From
Link copied to clipboard
fun
copyFrom
(
that
:
RGBAf
)
:
RGBAf
read
From
Link copied to clipboard
fun
readFrom
(
out
:
FloatArray
,
index
:
Int
=
0
)
set
To
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
set
To
Identity
Link copied to clipboard
fun
setToIdentity
(
)
:
RGBAf
set
To
Multiply
Link copied to clipboard
fun
setToMultiply
(
that
:
RGBAf
)
:
RGBAf
fun
setToMultiply
(
r
:
Float
,
g
:
Float
,
b
:
Float
,
a
:
Float
)
:
RGBAf
to
RGBA
Link copied to clipboard
fun
toRGBA
(
)
:
RGBA
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
to
Vector
Link copied to clipboard
fun
toVector
(
)
:
Vector4F
write
To
Link copied to clipboard
fun
writeTo
(
out
:
FloatArray
,
index
:
Int
=
0
)