Rendering
7 nodes
On this page 7
Image Size
FunctionThe size an image of a view has at a longest edge: a whole-world map is twice as wide as it is tall, a globe square.
Signature
ImageSize -> Integer Array
world: World
view: View
longestEdge: Integerint[] ImageSize(World world, View view, int longestEdge = 1024)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| view | View | — | The view. |
| longestEdge | Integer | 1024 | Pixels on the longest edge. |
Returns
| Size | Integer Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Rendering
- Package
- Fantasy Planet Painter
Make Flight View
FunctionA 3D view from a camera flying over the surface.
Signature
MakeFlightView -> View
latitude: Number
longitude: Number
altitude: Number
heading: Number
pitch: Number
clouds: TruthView MakeFlightView(
double latitude = 0,
double longitude = 0,
double altitude = 8000,
double heading = 0,
double pitch = -20,
bool clouds = true)Parameters
| name | type | default | description |
|---|---|---|---|
| latitude | Number | 0 | The place below the camera, in degrees north. |
| longitude | Number | 0 | The place below the camera, in degrees east. |
| altitude | Number | 8000 | The camera's height above the datum, in metres; it is kept clear of the ground. |
| heading | Number | 0 | Where the camera faces, in degrees clockwise from north. |
| pitch | Number | -20 | How far it looks up or down, in degrees; negative looks down. |
| clouds | Truth | True | Draw clouds. |
Returns
| View | View |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Rendering
- Package
- Fantasy Planet Painter
Make Globe View
FunctionA 3D view of the globe from space, looking down at a place.
Signature
MakeGlobeView -> View
latitude: Number
longitude: Number
zoom: Number
clouds: Truth
grid: TruthView MakeGlobeView(
double latitude = 20,
double longitude = 0,
double zoom = 1,
bool clouds = true,
bool grid = false)Parameters
| name | type | default | description |
|---|---|---|---|
| latitude | Number | 20 | The place below the camera, in degrees north. |
| longitude | Number | 0 | The place below the camera, in degrees east. |
| zoom | Number | 1 | How close: 1 shows the whole globe, larger comes nearer. |
| clouds | Truth | True | Draw clouds. |
| grid | Truth | False | Draw lines of latitude and longitude over the globe. |
Returns
| View | View |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Rendering
- Package
- Fantasy Planet Painter
Make Map View
FunctionA map view: a projection, its colours, where it is centred and how close it stands.
Signature
MakeMapView -> View
projection: Map Projection
theme: Map Theme
relief: Relief Style
latitude: Number
longitude: Number
zoom: Number
grid: Truth
sunAzimuth: Number
sunAltitude: Number
reliefExaggeration: NumberView MakeMapView(
MapProjection projection = MapProjection.Equirectangular,
MapTheme theme = MapTheme.Terrain,
ReliefStyle relief = ReliefStyle.Simple,
double latitude = 0,
double longitude = 0,
double zoom = 1,
bool grid = false,
double sunAzimuth = 315,
double sunAltitude = 34,
double reliefExaggeration = 190)Parameters
| name | type | default | description |
|---|---|---|---|
| projection | Map Projection | Equirectangular | How the sphere is laid out. |
| theme | Map Theme | Terrain | What the colours show. |
| relief | Relief Style | Simple | How relief is lit. |
| latitude | Number | 0 | The latitude at the view's centre, in degrees. |
| longitude | Number | 0 | The longitude at the view's centre, in degrees. |
| zoom | Number | 1 | How close: 1 shows the whole world, 4 a quarter of its width. |
| grid | Truth | False | Draw lines of latitude and longitude. |
| sunAzimuth | Number | 315 | Where the sun stands for shadowed relief, clockwise from north. |
| sunAltitude | Number | 34 | How high the sun stands for shadowed relief, above the horizon. |
| reliefExaggeration | Number | 190 | How strongly relief is lit, 190 as the app draws it. |
Returns
| View | View |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Rendering
- Package
- Fantasy Planet Painter
Orbit Frames
FunctionFrames of the 3D globe turning once round under the camera, for an animation.
Signature
OrbitFrames -> Pixel Image Array
world: World
frames: Integer
latitude: Number
zoom: Number
longestEdge: Integer
clouds: TruthPixelImage[] OrbitFrames(
World world,
int frames = 24,
double latitude = 20,
double zoom = 1,
int longestEdge = 256,
bool clouds = true)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| frames | Integer | 24 | How many frames make one turn. |
| latitude | Number | 20 | The latitude the camera looks down at, in degrees. |
| zoom | Number | 1 | How close: 1 shows the whole globe. |
| longestEdge | Integer | 256 | Pixels on each square frame's edge. |
| clouds | Truth | True | Draw clouds. |
Returns
| Frames | Pixel Image Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Rendering
- Package
- Fantasy Planet Painter
Render
FunctionAn image of a world's terrain in a view, with its grid if the view draws one.
Signature
Render -> Pixel Image
world: World
view: View
longestEdge: IntegerPixelImage Render(
World world,
View view,
int longestEdge = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| view | View | — | The view. |
| longestEdge | Integer | 1024 | Pixels on the longest edge, up to 8,192. |
Returns
| Image | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Rendering
- Package
- Fantasy Planet Painter
Render Map
FunctionAn image of a world as a finished map: its terrain with its places, and the world layers it was given in Fantasy Planet Painter, such as countries, rivers and names, with their legend and scale bar.
Signature
RenderMap -> Pixel Image
world: World
view: View
longestEdge: Integer
worldLayers: TruthPixelImage RenderMap(
World world,
View view,
int longestEdge = 1024,
bool worldLayers = true)Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world. |
| view | View | — | The view. |
| longestEdge | Integer | 1024 | Pixels on the longest edge, up to 8,192. |
| worldLayers | Truth | True | Draw the world layers the world shows in the app; off, only places are drawn over the terrain. |
Returns
| Image | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Rendering
- Package
- Fantasy Planet Painter