ChoiceGene

A choice between options ways of drawing. A change fades from the old option over one visual cycle.

Properties

Link copied to clipboard
var mix: Float

How far the running change towards value has come, 0 to 1. See weight for what it blends.

Link copied to clipboard
Link copied to clipboard
val on: Boolean

True for a two-way choice that is on.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var value: Int

Functions

Link copied to clipboard
fun choose(option: Int)
Link copied to clipboard
fun weight(option: Int): Float

How much of option to draw right now: 1 when settled on it, fading in or out during a change.