Skip to content
This repository
Browse code

new, simpler noise field example

  • Loading branch information...
commit 81d4988510aed2fbea7bb947032532cbbb4c89d5 1 parent 0591a1f
Jonathan Feinberg authored

Showing 1 changed file with 14 additions and 0 deletions. Show diff stats Hide diff stats

  1. +14 0 examples.py/Basics/Math/simple_noisefield.py
14 examples.py/Basics/Math/simple_noisefield.py
... ... @@ -0,0 +1,14 @@
  1 +"""
  2 + simple_noisefield.py - demonstrate Perlin noise
  3 + Jonathan Feinberg
  4 +"""
  5 +
  6 +def setup():
  7 + size(100, 100)
  8 +
  9 +def draw():
  10 + t = .0005 * millis()
  11 + for y in range(height):
  12 + for x in range(width):
  13 + blue = noise(t + .1*x, t + .05*y, .2*t)
  14 + set(x, y, color(0, 0, 255 * blue))

0 comments on commit 81d4988

Please sign in to comment.
Something went wrong with that request. Please try again.