compose-multiplatform-html-unified
Toggle table of contents
common
composeUi
js
Target filter
common
composeUi
js
Switch theme
Search in API
Skip to content
compose-multiplatform-html-unified
compose-multiplatform-html-unified-common
/
com.huanshankeji.compose.ui.graphics
/
Color
Color
common
composeUi
js
@
Stable
expect
fun
Color
(
red
:
Float
,
green
:
Float
,
blue
:
Float
,
alpha
:
Float
=
1.0f
)
:
Color
(
source
)
@
Stable
expect
fun
Color
(
color
:
Long
)
:
Color
(
source
)
@
Stable
expect
fun
Color
(
@
IntRange
(
from
=
0
,
to
=
255
)
red
:
Int
,
@
IntRange
(
from
=
0
,
to
=
255
)
green
:
Int
,
@
IntRange
(
from
=
0
,
to
=
255
)
blue
:
Int
,
@
IntRange
(
from
=
0
,
to
=
255
)
alpha
:
Int
=
255
)
:
Color
(
source
)
@
Stable
expect
fun
Color
(
@
ColorInt
color
:
Int
)
:
Color
(
source
)
ARGB
@
Stable
actual
fun
Color
(
red
:
Float
,
green
:
Float
,
blue
:
Float
,
alpha
:
Float
)
:
Color
(
source
)
@
Stable
actual
fun
Color
(
@
ColorInt
color
:
Int
)
:
Color
(
source
)
@
Stable
actual
fun
Color
(
color
:
Long
)
:
Color
(
source
)
@
Stable
actual
fun
Color
(
@
IntRange
(
from
=
0
,
to
=
255
)
red
:
Int
,
@
IntRange
(
from
=
0
,
to
=
255
)
green
:
Int
,
@
IntRange
(
from
=
0
,
to
=
255
)
blue
:
Int
,
@
IntRange
(
from
=
0
,
to
=
255
)
alpha
:
Int
)
:
Color
(
source
)
@
Stable
actual
fun
Color
(
red
:
Float
,
green
:
Float
,
blue
:
Float
,
alpha
:
Float
)
:
Color
(
source
)
@
Stable
actual
fun
Color
(
@
ColorInt
color
:
Int
)
:
Color
(
source
)
@
Stable
actual
fun
Color
(
color
:
Long
)
:
Color
(
source
)
@
Stable
actual
fun
Color
(
@
IntRange
(
from
=
0
,
to
=
255
)
red
:
Int
,
@
IntRange
(
from
=
0
,
to
=
255
)
green
:
Int
,
@
IntRange
(
from
=
0
,
to
=
255
)
blue
:
Int
,
@
IntRange
(
from
=
0
,
to
=
255
)
alpha
:
Int
)
:
Color
(
source
)