Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.18 KB

README.md

File metadata and controls

29 lines (21 loc) · 1.18 KB

Perlin noise

noise.mp4

This vjass library is for working with two-dimensional perlin noise. Some methods contain TriggerSleepAction() interrupts to protect against thread breakage. Depends on the LibReal2D library.

API

// Create noise. seed = -1 for random
Perlin per = Perlin.create(integer octaves, integer seed)

// Delete an object
per.destroy()

// Reinitialize noise
per.reinit(integer seed)

// Get the value at the point
per.get(real x, real y) // x,y in the range [0,1]

// Get an array filled with noise
Real2D map = per.fill(Real2D.create(integer length, integer width))

Why is this necessary?

1.mp4
2.mp4
3.mp4
4.mp4