swift-noise icon indicating copy to clipboard operation
swift-noise copied to clipboard

Generate and compose commonly-used procedural noises and distributions, in pure Swift

noise
2.0.0

ci build status

swift package index versions swift package index platforms

swift-noise is a free, pure Swift procedural noise generation library. The library product has no dependencies and does not import Foundation or any system frameworks.

All popular types of procedural noise are supported, including three gradient noises (often called Perlin or simplex noises), and two cellular noises (sometimes called Worley or Voronoi noises).

swift-noise includes a fractal brownian motion (FBM) noise composition framework, and a disk point sampler (often called a Poisson sampler), for generating visually even point distributions in the plane. swift-noise also includes pseudo-random number generation and hashing tools.

swift-noise’s entire public API is documented.

Building

Build Noise with the Swift Package Manager. Noise itself has no dependencies, but the tests use swift-png to view the generated noise.