How do I make p5 js noise not repeat it’s self? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I make p5 js noise not repeat it’s self?

3rd Feb 2021, 5:30 PM
VOID
VOID - avatar
2 Answers
+ 1
if you're using Perlin noise it should be different every time you compile it. Remember that Perlin noise works on infinite 1D, 2D and 3D spaces. So you can call noise(x,y,z) at different coords and it will always return a different value between 0 and 1.
26th Feb 2021, 10:41 PM
Diego de la Fuente Curaqueo
Diego de la Fuente Curaqueo - avatar
+ 1
got it, thanks
6th Mar 2021, 9:47 PM
VOID
VOID - avatar