WorldWind Kotlin
Toggle table of contents
2.1.1
wasmJs
Target filter
wasmJs
Switch theme
Search in API
Skip to content
WorldWind Kotlin
WorldWind Kotlin
/
earth.worldwind.shape.milstd2525
/
Color
Color
wasmJs
external
class
Color
:
JsAny
Integer based Color class with utility functions
Members
Constructors
Color
Link copied to clipboard
wasmJs
constructor
(
)
constructor
(
color
:
Color
)
constructor
(
color
:
Double
)
constructor
(
R
:
Double
,
G
:
Double
,
B
:
Double
)
constructor
(
R
:
Double
,
G
:
Double
,
B
:
Double
,
A
:
Double
)
constructor
(
hexString
:
String
)
Types
Companion
Link copied to clipboard
wasmJs
object
Companion
Functions
get
Alpha
Link copied to clipboard
wasmJs
fun
getAlpha
(
)
:
Double
get
Blue
Link copied to clipboard
wasmJs
fun
getBlue
(
)
:
Double
get
Green
Link copied to clipboard
wasmJs
fun
getGreen
(
)
:
Double
get
Red
Link copied to clipboard
wasmJs
fun
getRed
(
)
:
Double
set
Alpha
Link copied to clipboard
wasmJs
fun
setAlpha
(
alpha
:
Double
)
to
ARGB
Link copied to clipboard
wasmJs
fun
toARGB
(
)
:
Double
to
Hex
String
Link copied to clipboard
wasmJs
fun
toHexString
(
withAlpha
:
Boolean
=
definedExternally
)
:
String
A hex string in the format of AARRGGBB
to
Int
Link copied to clipboard
wasmJs
fun
toInt
(
)
:
Double
to
RGB
Link copied to clipboard
wasmJs
fun
toRGB
(
)
:
Double