MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/processing/comments/4d9qj7/pwc3_random_graffiti_walker/d1p2trp/
r/processing • u/davebrown57 • Apr 04 '16
download
a more colorful take on the perlin noise walker from the nature of code. click to randomize!
video
4 comments sorted by
View all comments
Show parent comment
2
Hoy!
Looking at the code, he uses map() to map what noise returns (between 0 and 1) to a color, in this very line:
c = color(map(noise(tx), 0, 1, 0, 255), map(noise(ty), 0, 1, 0, 255), map(noise(mode), 0, 1, 0, 255), map(noise(frameCount/10), 0, 1, 50, 255));
Nice job, and the code is neat!
1 u/davebrown57 Apr 04 '16 Thanks, but I have to give Shiffman most of the credit as I based it on his example. There are probably a lot of really cool things you could do by mapping nearly every value to the noise function.
1
Thanks, but I have to give Shiffman most of the credit as I based it on his example. There are probably a lot of really cool things you could do by mapping nearly every value to the noise function.
View all comments
Show parent comment
2
u/NakedFluffyBee Apr 04 '16
Hoy!
Looking at the code, he uses map() to map what noise returns (between 0 and 1) to a color, in this very line:
Nice job, and the code is neat!