smcameron / open-simplex-noise-in-c

Port of Kurt Spencer's java implementation of open simplex noise to C -- Note: This is NOT Ken Perlin's Simplex noise algorithm.
The Unlicense
139 stars 19 forks source link

What is the range of output for the noise functions. #15

Closed Vaxeral closed 1 year ago

Vaxeral commented 1 year ago

(value + 0.5) * 255 I try this as the color and i get noticeable borders in the noise image. What is the range of the function open_simplex_noise2 and how can i correct my code to get it in the range of 0 to 255

Vaxeral commented 1 year ago

Oh nevermind its (value + 1.0) / 2.0