threejs-worldgen
Website
Demos
GitHub
Preparing search index...
threejs-city
cellColor
Function cellColor
cellColor
(
cell
:
Pick
<
AggregateCell
,
"density"
|
"light"
|
"habitability"
|
"landUse"
,
>
,
mode
:
PopulationMode
,
style
?:
PopulationStyle
,
)
:
[
number
,
number
,
number
]
Colour (0…1 sRGB) of a cell in a view mode.
Parameters
cell
:
Pick
<
AggregateCell
,
"density"
|
"light"
|
"habitability"
|
"landUse"
>
mode
:
PopulationMode
style
:
PopulationStyle
= DEFAULT_STYLE
Returns
[
number
,
number
,
number
]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Website
Demos
GitHub
threejs-worldgen
Loading...
Colour (0…1 sRGB) of a cell in a view mode.