Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/undefinist/noisehx
Generate Perlin noise in Haxe.
https://github.com/undefinist/noisehx
Last synced: about 12 hours ago
JSON representation
Generate Perlin noise in Haxe.
- Host: GitHub
- URL: https://github.com/undefinist/noisehx
- Owner: undefinist
- Created: 2014-09-14T10:46:09.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-21T21:51:14.000Z (over 1 year ago)
- Last Synced: 2024-03-11T10:34:41.018Z (4 months ago)
- Language: Haxe
- Size: 4.88 KB
- Stars: 18
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-haxe-generative - noisehx
README
**NOTE: [hxNoise](https://github.com/whuop/hxNoise) is probably better, so use that instead!**
# About
noisehx is a teeny weeny library to generate Perlin noise.
The code is a port of [noisejs](https://github.com/josephg/noisejs) by [Joseph Gentle](https://github.com/josephg),
which is based on Stefan Gustavson's implementation.# Setting up
To install, use the command:
`haxelib git noisehx https://github.com/madhoe/noisehx.git`
# Example
```
// If no seed passed into constructor, a random one is used.
var perlin:Perlin = new Perlin();for (x in 0...100)
{
for (y in 0...100)
{
var value:Float = perlin.noise2d(x / 10.0, y / 10.0);
// Do stuff with it...
}
}
```