polyui
1.8.3
jvm
polyui
/
org.polyfrost.polyui.component.extensions
/
setPalette
set
Palette
fun
<
S
:
Drawable
>
S
.
setPalette
(
palette
:
Colors.Palette
,
animation
:
Boolean
=
false
)
:
S
fun
<
S
:
Drawable
>
S
.
setPalette
(
palette
:
Colors
.
(
)
->
Colors.Palette
)
:
S
Set the color palette of this drawable during initialization, using the PolyUI colors instance.