Basics
Guides
API Reference
Basics
Guides
API Reference
[20:7] extends: NodeSkybox
Wraps FXGL's CanvasSkybox, a NodeSkybox subclass whose six faces are JavaFX Canvas nodes the caller can draw onto with a GraphicsContext. Use when the skybox is procedurally generated at runtime (e.g. dynamic weather, animated celestial bodies). CanvasSkybox extends NodeSkybox in Java, so this wrapper extends the fxgl NodeSkybox wrapper and inherits its face-Group accessors. Construct directly or through SkyboxBuilder.buildCanvasSkybox.
CanvasSkybox (int Size = 1024)
Creates a new CanvasSkybox with the given face size (each Canvas is Size x Size pixels).
Size is the per-face Canvas dimension in pixels.adopt (object Ajo)
Wraps an existing CanvasSkybox AussomJavaObject (typically one returned from SkyboxBuilder.buildCanvasSkybox).
Ajo is an AussomJavaObject around a CanvasSkybox.A new CanvasSkybox wrapper.getSize ()
Returns the configured per-face size.
getFrontCanvas ()
Returns the front face Canvas AJO.
getBackCanvas ()
Returns the back face Canvas AJO.
getLeftCanvas ()
Returns the left face Canvas AJO.
getRightCanvas ()
Returns the right face Canvas AJO.
getTopCanvas ()
Returns the top face Canvas AJO.
getBotCanvas ()
Returns the bottom face Canvas AJO.
getCanvases ()
Returns the list of all six Canvas faces in front / back / left / right / top / bot order.
An AussomJavaObject around a ListgetFront ()
Returns the front face Group AJO.
getBack ()
Returns the back face Group AJO.
getLeft ()
Returns the left face Group AJO.
getRight ()
Returns the right face Group AJO.
getTop ()
Returns the top face Group AJO.
getBot ()
Returns the bottom face Group AJO.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.