littlekt
0.6.0
common
core
/
com.lehaine.littlekt.graphics
/
ColorGradient
Color
Gradient
class
ColorGradient
(
colors
:
Pair
<
Float
,
Color
>
,
n
:
Int
=
DEFAULT_N
,
toLinear
:
Boolean
=
false
)
Author
Colton Daily
Types
Constructors
Functions
Constructors
Color
Gradient
Link copied to clipboard
fun
ColorGradient
(
vararg
colors
:
Color
,
n
:
Int
=
DEFAULT_N
)
Color
Gradient
Link copied to clipboard
fun
ColorGradient
(
vararg
colors
:
Pair
<
Float
,
Color
>
,
n
:
Int
=
DEFAULT_N
,
toLinear
:
Boolean
=
false
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
get
Color
Link copied to clipboard
fun
getColor
(
value
:
Float
,
min
:
Float
=
0.0f
,
max
:
Float
=
1.0f
)
:
Color
get
Color
Interpolated
Link copied to clipboard
fun
getColorInterpolated
(
value
:
Float
,
result
:
MutableColor
,
min
:
Float
=
0.0f
,
max
:
Float
=
1.0f
)
:
MutableColor
inverted
Link copied to clipboard
fun
inverted
(
)
:
ColorGradient