Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jonathan Feinberg
committed
Oct 17, 2010
1 parent
0591a1f
commit 81d4988
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)) |