Profile
Back to NewsBack
GitHub Trending 1 min
Reader Mode
tayloraswift/swift-noise: Generate and compose commonly-used procedural noises and distributions, in pure Swift

tayloraswift/swift-noise: Generate and compose commonly-used procedural noises and distributions, in pure Swift

8 hours ago

☁   swift-noise   ☁

a pure Swift procedural noise generation library with no dependencies or Foundation imports

documentation · license

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.

Requirements

The swift-noise library requires Swift 6.0 or later.

| Platform | Status | | -------- | ------ | | 💬 Documentation | Status</a> | | 🐧 Linux | Status</a> | | 🍏 Darwin | Status</a> | | 🍏 Darwin (iOS) | Status</a> | | 🍏 Darwin (tvOS) | Status</a> | | 🍏 Darwin (visionOS) | Status</a> | | 🍏 Darwin (watchOS) | Status</a> |

Check deployment minimums

Building

Build swift-noise with the Swift Package Manager. The library itself has no dependencies, but the package includes an executable, generate-noise, that depends on swift-png, which generates noise locally for visual inspection.

To regenerate example images, run the following command in the terminal:

swift run -c release generate-noise
Our Related Projects
Farm Fresh Kikapu

An e-commerce platform for farm-fresh produce - an online st...

View Project
Chat with me