Skip to content

Commit

Permalink
new, simpler noise field example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Feinberg committed Oct 17, 2010
1 parent 0591a1f commit 81d4988
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples.py/Basics/Math/simple_noisefield.py
@@ -0,0 +1,14 @@
"""
simple_noisefield.py - demonstrate Perlin noise
Jonathan Feinberg
"""

def setup():
size(100, 100)

def draw():
t = .0005 * millis()
for y in range(height):
for x in range(width):
blue = noise(t + .1*x, t + .05*y, .2*t)
set(x, y, color(0, 0, 255 * blue))

0 comments on commit 81d4988

Please sign in to comment.