toggle menu
mapsglmaps
androidJvm
switch theme
search in API
mapsglmaps
/
com.xweather.mapsglmaps.style
/
ColorScale
Color
Scale
class
ColorScale
(
colors
:
List
<
Int
>
)
Members
Constructors
Color
Scale
Link copied to clipboard
constructor
(
colors
:
List
<
Int
>
)
Properties
_breaks
Link copied to clipboard
var
_breaks
:
MutableList
<
Double
>
_cache
Link copied to clipboard
var
_cache
:
MutableMap
<
Double
,
DataColorScale.RGB
>
_colors
Link copied to clipboard
var
_colors
:
MutableList
<
DataColorScale.RGB
>
_correct
Lightness
Link copied to clipboard
var
_correctLightness
:
Boolean
_domain
Link copied to clipboard
var
_domain
:
List
<
Double
>
_pos
Link copied to clipboard
var
_pos
:
MutableList
<
Double
>
_range
Link copied to clipboard
var
_range
:
ValueRange
mode
Link copied to clipboard
var
mode
:
String
spread
Link copied to clipboard
var
spread
:
Double
t
Map
Domain
Link copied to clipboard
var
tMapDomain
:
(
Double
)
->
Double
Functions
breaks
Link copied to clipboard
fun
breaks
(
value
:
Any
?
)
Returns a distinct set of colors instead of a continuous gradient.
color
For
Value
Link copied to clipboard
fun
colorForValue
(
value
:
Double
)
:
Int
colors
Link copied to clipboard
fun
colors
(
total
:
Int
,
out
:
String
=
"hex"
)
:
List
<
DataColorScale.RGB
>
domain
Link copied to clipboard
fun
domain
(
domain
:
MutableList
<
Double
>
)
:
Any
get
Color
Link copied to clipboard
fun
getColor
(
value
:
Double
,
bypassMap
:
Boolean
=
false
)
:
DataColorScale.RGB
set
Domain
Link copied to clipboard
fun
setDomain
(
domain
:
List
<
Double
>
)
set
Stops
Link copied to clipboard
fun
setStops
(
stops
:
List
<
Double
>
)