VizParam

class VizParam(val name: String, val min: Float, val max: Float, val default: Float)

One setting a drawing lets a person change while it runs.

A drawing reads value every frame, so a change shows at once. Whatever is written to value is kept between min and max.

Constructors

Link copied to clipboard
constructor(name: String, min: Float, max: Float, default: Float)

Properties

Link copied to clipboard
Link copied to clipboard

Where value sits between min and max, 0 to 1. Handy for a slider.

Link copied to clipboard
val max: Float
Link copied to clipboard
val min: Float
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun reset()