Ground

class Ground(kind: GroundKind, var dim: Float = 1.0f, val parallax: Float = 0.4f, camera: Camera2D? = null, seed: Float = 1.0f)

A live field that fills the canvas under a drawing.

One shader drawn straight on the canvas, so in a window it runs on the graphics card. It keeps moving in silence, follows camera at parallax, and fades over fadeSeconds when kind changes.

Constructors

Link copied to clipboard
constructor(kind: GroundKind, dim: Float = 1.0f, parallax: Float = 0.4f, camera: Camera2D? = null, seed: Float = 1.0f)

Properties

Link copied to clipboard
var dim: Float
Link copied to clipboard

Seconds a change of kind takes.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var walk: Float

An extra turn of the palette, for a colour that walks over the song.

Functions

Link copied to clipboard
fun reset()