kool-editor-model
Toggle table of contents
0.18.0
common
Platform filter
common
Switch theme
Search in API
kool-editor-model
kool-editor-model
/
de.fabmax.kool.editor.data
/
ColorData
Color
Data
@
Serializable
data
class
ColorData
(
val
r
:
Float
,
val
g
:
Float
,
val
b
:
Float
,
val
a
:
Float
,
val
isLinear
:
Boolean
=
true
)
Members
Constructors
Color
Data
Link copied to clipboard
constructor
(
color
:
Color
,
isLinear
:
Boolean
=
true
)
constructor
(
r
:
Float
,
g
:
Float
,
b
:
Float
,
a
:
Float
,
isLinear
:
Boolean
=
true
)
Properties
a
Link copied to clipboard
val
a
:
Float
b
Link copied to clipboard
val
b
:
Float
g
Link copied to clipboard
val
g
:
Float
is
Linear
Link copied to clipboard
val
isLinear
:
Boolean
=
true
r
Link copied to clipboard
val
r
:
Float
Functions
to
Color
Linear
Link copied to clipboard
fun
toColorLinear
(
result
:
MutableColor
=
MutableColor()
)
:
MutableColor
to
Color
Srgb
Link copied to clipboard
fun
toColorSrgb
(
result
:
MutableColor
=
MutableColor()
)
:
MutableColor