Painting
6 nodes
On this page 6
Clear Layer
FunctionThe world with one layer emptied, so the layers below show through.
Signature
ClearLayer(world: World, layer: Integer) -> World
World ClearLayer(World world, int layer = 0)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| layer | Integer | 0 | 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
- Painting
- Package
- Fantasy Planet Painter
Erase
FunctionThe world with the brush's disc erased along a path, emptying cells so the layers below show through.
Signature
Erase -> World
world: World
latitudes: Number Array
longitudes: Number Array
size: Integer
layer: IntegerWorld Erase(
World world,
double[] latitudes,
double[] longitudes,
int size = 15,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| latitudes | Number Array | — | The path's latitudes, in degrees north; one point erases one disc. |
| longitudes | Number Array | — | The path's longitudes, in degrees east. |
| size | Integer | 15 | The eraser's diameter, in cells. |
| layer | Integer | 0 | 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
- Painting
- Package
- Fantasy Planet Painter
Fill Layer
FunctionThe world with every cell of one layer painted one height.
Signature
FillLayer(world: World, height: Number, layer: Integer) -> World
World FillLayer(World world, double height, int layer = 0)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| height | Number | — | The height, in metres on the datum. |
| layer | Integer | 0 | 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
- Painting
- Package
- Fantasy Planet Painter
Fill Polygon
FunctionThe world with the cells inside a polygon painted one height. The polygon is drawn on the grid, so it should not cross the date line.
Signature
FillPolygon -> World
world: World
latitudes: Number Array
longitudes: Number Array
height: Number
layer: IntegerWorld FillPolygon(
World world,
double[] latitudes,
double[] longitudes,
double height = 200,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| latitudes | Number Array | — | The corners' latitudes, in degrees north. |
| longitudes | Number Array | — | The corners' longitudes, in degrees east. |
| height | Number | 200 | The height to paint, in metres on the datum. |
| layer | Integer | 0 | 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
- Painting
- Package
- Fantasy Planet Painter
Paint
FunctionThe world with one dab of the brush.
Signature
Paint -> World
world: World
latitude: Number
longitude: Number
height: Number
size: Integer
tool: Brush Tool
falloff: Brush Falloff
layer: IntegerWorld Paint(
World world,
double latitude,
double longitude,
double height = 1500,
int size = 9,
BrushTool tool = BrushTool.Circle,
BrushFalloff falloff = BrushFalloff.SmoothStep,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| latitude | Number | — | Where, in degrees north. |
| longitude | Number | — | Where, in degrees east. |
| height | Number | 1500 | The height to paint, in metres on the datum. |
| size | Integer | 9 | The brush's diameter, in cells. |
| tool | Brush Tool | Circle | The brush's shape. |
| falloff | Brush Falloff | Smooth step | How a soft or blending brush fades to its edge. |
| layer | Integer | 0 | 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
- Painting
- Package
- Fantasy Planet Painter
Paint Stroke
FunctionThe world with one stroke of the brush along a path, a dab at every cell between the points, crossing the date line the short way.
Signature
PaintStroke -> World
world: World
latitudes: Number Array
longitudes: Number Array
height: Number
size: Integer
tool: Brush Tool
falloff: Brush Falloff
layer: IntegerWorld PaintStroke(
World world,
double[] latitudes,
double[] longitudes,
double height = 1500,
int size = 9,
BrushTool tool = BrushTool.SoftBrush,
BrushFalloff falloff = BrushFalloff.SmoothStep,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| latitudes | Number Array | — | The path's latitudes, in degrees north. |
| longitudes | Number Array | — | The path's longitudes, in degrees east, one for each latitude. |
| height | Number | 1500 | The height to paint, in metres on the datum. |
| size | Integer | 9 | The brush's diameter, in cells. |
| tool | Brush Tool | Soft brush | The brush's shape. |
| falloff | Brush Falloff | Smooth step | How a soft or blending brush fades to its edge. |
| layer | Integer | 0 | 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
- Painting
- Package
- Fantasy Planet Painter