No description
Find a file
2025-12-28 11:40:50 -08:00
.github/workflows Re-add demo to github actions 2025-12-28 11:37:38 -08:00
bin Remove usage of sugar module from demo bins 2025-12-28 11:37:26 -08:00
src Fix tests in older versions of nim 2025-12-28 11:21:14 -08:00
tests 4D perlin noise 2025-12-21 10:38:29 -08:00
.gitignore Reorganize package for newer nimble 2019-03-26 20:46:12 -07:00
.gitmodules Remove NimMakefile submodule 2017-07-13 08:44:36 -07:00
LICENSE.md Add license and readme 2015-08-20 08:03:25 -07:00
nim.cfg Disable processing hints 2019-03-27 09:19:32 -07:00
perlin.nimble Bump to version 0.9.0 2025-12-28 11:40:50 -08:00
README.md Use github actions for builds 2023-09-30 11:07:16 -07:00

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