r/processing • • Apr 04 '16

[PWC3] Random Graffiti Walker

download

a more colorful take on the perlin noise walker from the nature of code. click to randomize!

video

4 Upvotes

4 comments sorted by

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:

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.