toggle menu
Kotlin Wrappers API Reference
common
switch theme
search in API
kotlin-css
/
kotlinx.css
/
Color
/
withAlpha
with
Alpha
fun
withAlpha
(
alpha
:
Double
)
:
Color
(
source
)
withAlpha preserves existing alpha value: rgba(0, 0, 0, 0.5).withAlpha(0.1) = rgba(0, 0, 0, 0.05)