Skip to content

Instantly share code, notes, and snippets.

@sevvie
Created October 14, 2012 20:51
Show Gist options
  • Save sevvie/3889788 to your computer and use it in GitHub Desktop.
Save sevvie/3889788 to your computer and use it in GitHub Desktop.
package mapgen
import "testing"
func TestNoiseGenerator(t *testing.T) {
prng := new(PerlinNoisePRNG)
prng.seed = 1
var e float64
for i := 0.0; i < 64; i++ {
for j := 0.0; j < 64; j++ {
e = prng.NoiseAt(i, j)
t.Logf("x: %f | y: %f | n: %f", i, j, e)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment