Fractal noise functions designed to be used with any noise generation algorithm.
- Deno module: https://deno.land/x/fractal_noise
- NPM package: fractal-noise
These images were all generated using basic value noise with width: 888
and height: 111
.
makeCylinderSurface(width, height, valueNoise3D, { frequency: 0.04, octaves: 2 })
makeCylinderSurface(width, height, valueNoise3D, { frequency: 0.06, octaves: 8 })
makeLine(width, valueNoise1D) // (Replicated across y-axis)
makeLine(height, valueNoise1D, { frequency: 0.1 }) // (Replicated across x-axis)
makeRectangle(width, height, valueNoise2D)
makeRectangle(width, height, valueNoise2D, { frequency: 0.04, octaves: 8 })
amplitude?: number
– Defaults to1.0
frequency?: number
– Defaults to1.0
octaves?: number
– Defaults to1
persistence?: number
– Defaults to0.5
scale?: (x: number) => number
– Defaults toundefined
width: number
height: number
depth: number
noise3: (x: number, y: number, z: number) => number
options?: Options = {}
Generates a three-dimensional noise field for a rectangular cuboid.
circumference: number
height: number
noise3: (x: number, y: number, z: number) => number
options?: Options = {}
Generates a two-dimensional noise field formed around a three-dimensional cylinder, such that it is continuous across the x-boundaries.
length: number
noise1: (x: number) => number
options?: Options = {}
Generates a one-dimensional noise field.
width: number
height: number
noise2: (x: number, y: number) => number
options?: Options = {}
Generates a two-dimensional noise field isolated to width
and height
(non-continuous noise).
circumference: number
noise3: (x: number, y: number, z: number) => number
options?: Options = {}
Generates a two-dimensional noise field formed on the surface of a three-dimensional sphere.