Terrain Layers
8 nodes
On this page 8
Add Layer
FunctionThe world with a new, empty layer on top.
Signature
AddLayer(world: World, name: Text) -> World
World AddLayer(World world, string name = "Layer")
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| name | Text | Layer | The layer's name. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layers
- Package
- Fantasy Planet Painter
Layers
FunctionThe world's terrain layers, from the bottom.
Signature
Layers(world: World) -> Terrain Layer Array
TerrainLayerInfo[] Layers(World world)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
Returns
| Layers | Terrain Layer Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layers
- Package
- Fantasy Planet Painter
Lock Layer
FunctionThe world with one layer locked or unlocked. Painting and shaping leave a locked layer alone.
Signature
LockLayer(world: World, layer: Integer, locked: Truth) -> World
World LockLayer(World world, int layer, bool locked = true)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| layer | Integer | — | Which layer, from the bottom at 0. |
| locked | Truth | True | Whether the layer is locked. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layers
- Package
- Fantasy Planet Painter
Move Layer
FunctionThe world with one layer moved to another place in the stack.
Signature
MoveLayer -> World
world: World
layer: Integer
position: IntegerWorld MoveLayer(World world, int layer, int position)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| layer | Integer | — | Which layer, from the bottom at 0. |
| position | Integer | — | Where it goes, from the bottom at 0. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layers
- Package
- Fantasy Planet Painter
Remove Layer
FunctionThe world without one of its layers. The last layer cannot be removed.
Signature
RemoveLayer(world: World, layer: Integer) -> World
World RemoveLayer(World world, int layer)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| layer | Integer | — | Which layer, from the bottom at 0. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layers
- Package
- Fantasy Planet Painter
Rename Layer
FunctionThe world with one layer renamed.
Signature
RenameLayer(world: World, layer: Integer, name: Text) -> World
World RenameLayer(World world, int layer, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| layer | Integer | — | Which layer, from the bottom at 0. |
| name | Text | — | The new name. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layers
- Package
- Fantasy Planet Painter
Resize Grid
FunctionThe world on a grid of another size: every layer resampled to it, or cut and padded.
Signature
ResizeGrid -> World
world: World
width: Integer
height: Integer
resample: TruthWorld ResizeGrid(
World world,
int width,
int height,
bool resample = true)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| width | Integer | — | Cells around the equator, 1 to 2,048. |
| height | Integer | — | Cells from pole to pole, 1 to 2,048. |
| resample | Truth | True | Resample the terrain to the new grid; off, it is cut or padded with empty cells. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layers
- Package
- Fantasy Planet Painter
Show Layer
FunctionThe world with one layer shown or hidden. A hidden layer is kept but adds nothing to the terrain.
Signature
ShowLayer(world: World, layer: Integer, visible: Truth) -> World
World ShowLayer(World world, int layer, bool visible = true)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| layer | Integer | — | Which layer, from the bottom at 0. |
| visible | Truth | True | Whether the layer is shown. |
Returns
| World | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layers
- Package
- Fantasy Planet Painter