Noise1

class Noise1(seed: Int = 1)

Smooth random movement over time.

A camera that drifts on a sine wave reads as machinery, because a sine repeats and the eye notices. This blends between random values at whole numbers of time, so it wanders without ever repeating and without jumping.

Constructors

Link copied to clipboard
constructor(seed: Int = 1)

Functions

Link copied to clipboard
fun at(time: Float): Float

The value at time, between -1 and 1.

Link copied to clipboard
fun layered(time: Float, octaves: Int = 3): Float

Several octaves added together, which gives both slow drift and small detail.