Permalink
Browse files

new, simpler noise field example

  • Loading branch information...
1 parent 0591a1f commit 81d4988510aed2fbea7bb947032532cbbb4c89d5 @jdf committed Oct 17, 2010
Showing with 14 additions and 0 deletions.
  1. +14 −0 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.