Nycto / PerlinNim

Perlin and Simplex noise generation for Nim
MIT License
18 stars 0 forks source link

Octave loop range fix #8

Open guzba opened 4 years ago

guzba commented 4 years ago

Hello, I noticed that there is an issue with the octave range in the applyOctaves template. It will always run octaves + 1 times. This small change fixes the issue:

-    for i in 0..self.octaves:
+    for i in 0..<self.octaves: