perlin

Perlin noise and Simplex noise generation

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install perlin
choosenim install perlin
git clone https://github.com/Nycto/PerlinNim

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
perlin - - - - - - -

Source

Repository https://github.com/Nycto/PerlinNim
Homepage https://github.com/Nycto/PerlinNim
Registry Source nimble_official

README

PerlinNim

Build License

A noise generation library for Nim, with support for both Perlin noise and Simplex noise.

API Docs

http://nycto.github.io/PerlinNim/perlin.html

A Quick Example

import perlin, random, math

# Call randomize from the 'math' module to ensure the seed is unique
randomize()

let noise = newNoise()

# Output a 20x10 grid of noise
for y in 0..10:
    for x in 0..20:
        let value = noise.simplex(x, y)
        # If you wanted to use Perlin noise, you would swap that line out with:
        # let value = noise.perlin(x, y)

        stdout.write( int(10 * value) )
    stdout.write("\n")

License

This library is released under the MIT License, which is pretty spiffy. You should have received a copy of the MIT License along with this program. If not, see http://www.opensource.org/licenses/mit-license.php