Worlds
11 nodes
On this page 11
Earth World
FunctionThe Earth as it was measured: every cell's exact height from NOAA's ETOPO5, the land's elevation and the sea floor's depth in metres, averaged from its 5-minute grid onto the world's, with the sea at 0 m.
EarthWorld(width: Integer, addDetail: Truth) -> World
World EarthWorld(int width = 2048, bool addDetail = true)
Parameters
| name | type | default | description |
|---|---|---|---|
| width | Integer | 2048 | Cells around the equator, 2 to 2,048; the world is half as many cells from pole to pole. |
| addDetail | Truth | True | Whether the planet grows its own procedural detail between and below the measured cells, which a close view or a flight needs; off, every view shows the measurements as they are. |
Returns
| World | World |
Remarks
ETOPO5 (NOAA, National Geophysical Data Center, 1988) is in the public domain and travels beside this toolbox with its notice. Its grid is finer than any world's, so a wider world is a sharper Earth; at the most, 2,048 cells, a cell is about 20 km across at the equator. Below that the planet grows its own detail, as it does in a painted world, unless Add Detail is off.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Worlds
- Package
- Fantasy Planet Painter
New World
FunctionA new world of open ocean, ready to paint.
NewWorld(width: Integer, height: Integer, seed: Number) -> World
World NewWorld(
int width = 1024,
int height = 512,
double seed = 0.618034)Parameters
| name | type | default | description |
|---|---|---|---|
| width | Integer | 1024 | Cells around the equator, 2 to 2,048. |
| height | Integer | 512 | Cells from pole to pole, 1 to 2,048; half the width keeps cells square. |
| seed | Number | 0.618034 | The seed the planet's procedural detail grows from. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Worlds
- Package
- Fantasy Planet Painter
Open World
FunctionOpens a world saved by Fantasy Planet Painter: an .fpp2 file, or a .planet file from version 1, which is given Physical World elevations as the app gives them.
OpenWorld(path: Text) -> World
World OpenWorld(string path)
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — | The file to open. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Worlds
- Package
- Fantasy Planet Painter
Random World
FunctionA new world of continents drawn by Fantasy Planet Painter's Randomize: coherent land, seas and mountain ranges from a seed.
RandomWorld -> World
seed: Integer
width: Integer
height: IntegerWorld RandomWorld(
int seed = 1,
int width = 1024,
int height = 512)Parameters
| name | type | default | description |
|---|---|---|---|
| seed | Integer | 1 | Which world: the same seed always draws the same continents. |
| width | Integer | 1024 | Cells around the equator, 2 to 2,048. |
| height | Integer | 512 | Cells from pole to pole, 1 to 2,048. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Worlds
- Package
- Fantasy Planet Painter
Rename World
FunctionThe world with a new name.
RenameWorld(world: World, name: Text) -> World
World RenameWorld(World world, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| name | Text | — | The planet's name. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Worlds
- Package
- Fantasy Planet Painter
Sample Earth World
FunctionThe Earth the app starts with: a coarse 48 × 24 painting of the continents, with Physical World elevations, from which the planet grows the rest of its detail. Earth World is the Earth as it was measured.
SampleEarthWorld() -> World
World SampleEarthWorld()
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Worlds
- Package
- Fantasy Planet Painter
Save Planet File
FunctionSaves a world as a .planet file for version 1 and the tools that read it. Only the visible terrain survives, flattened into the nine classic heights, with the places.
SavePlanetFile(world: World, path: Text) -> Text
string SavePlanetFile(World world, string path)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world to save. |
| path | Text | — | Where to save it, ending in .planet. |
Returns
| Path | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Worlds
- Package
- Fantasy Planet Painter
Save World
FunctionSaves a world as an .fpp2 file, which Fantasy Planet Painter opens.
SaveWorld(world: World, path: Text) -> Text
string SaveWorld(World world, string path)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world to save. |
| path | Text | — | Where to save it, ending in .fpp2. A file already there is replaced only once the new one is complete. |
Returns
| Path | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Worlds
- Package
- Fantasy Planet Painter
Set Radius
FunctionThe world with another planet radius: the same painting on a larger or smaller planet, which changes distances, the scale bar and how far the 3D view sees.
SetRadius(world: World, kilometres: Number) -> World
World SetRadius(World world, double kilometres)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| kilometres | Number | — | The radius, 1,000 to 100,000 km; the Earth's is 6,371. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Worlds
- Package
- Fantasy Planet Painter
Set Seed
FunctionThe world with another seed for its procedural detail: the painted terrain stays, the detail between the cells and the clouds change.
SetSeed(world: World, seed: Number) -> World
World SetSeed(World world, double seed)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| seed | Number | — | The new seed. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Worlds
- Package
- Fantasy Planet Painter
World From Heights
FunctionA new world whose terrain is a heightfield in metres, such as Procedural Terrain makes: each value becomes one cell's exact height.
WorldFromHeights -> World
heights: Scalar Field
seaLevel: Number
addDetail: Truth
seed: NumberWorld WorldFromHeights(
ScalarField2D heights,
double seaLevel = 0,
bool addDetail = false,
double seed = 0.618034)Parameters
| name | type | default | description |
|---|---|---|---|
| heights | Scalar Field | — | Heights in metres on the datum, row by row from the north. |
| seaLevel | Number | 0 | The height of the sea, in metres on the same datum. |
| addDetail | Truth | False | Whether the planet adds its own procedural detail between and below the cells, as a painted world has; off, it shows the field as it is. |
| seed | Number | 0.618034 | The seed the planet's detail grows from. |
Returns
| World | World |
Remarks
The field is the world's painting grid, so it spans longitude −180° to 180° across and latitude 90° to −90° down, and at most 2,048 cells each way. A value that is not a number leaves its cell empty.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Worlds
- Package
- Fantasy Planet Painter