processing:compass_example
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
processing:compass_example [2013/08/03 04:11] – [Perlin noise] mithat | processing:compass_example [2015/08/01 21:11] (current) – [Refining randomness] mithat | ||
---|---|---|---|
Line 122: | Line 122: | ||
| | ||
// draw the compass at " | // draw the compass at " | ||
- | drawCompass(ang+random(-4.0, | + | drawCompass(ang + random(-4.0, |
}</ | }</ | ||
Line 131: | Line 131: | ||
The offsets in the " | The offsets in the " | ||
- | A random offset process can be smoothed out by // | + | A random offset process can be smoothed out by // |
<code java> | <code java> | ||
Line 164: | Line 164: | ||
===== Perlin noise ===== | ===== Perlin noise ===== | ||
- | [[https://en.wikipedia.org/wiki/Perlin_noise|Perlin noise]] is a mapping function that simulates natural random variations very well. We call it a mapping function because unlike Processing' | + | [[http://mithatkonar.com/processing/ |
- | Processing has a function called '' | + | [[https:// |
+ | |||
+ | Processing has a function called '' | ||
<code java> | <code java> | ||
Line 204: | Line 206: | ||
| | ||
// draw the compass | // draw the compass | ||
- | drawCompass(ang + angleOffset, | + | drawCompass(ang+angleOffset, |
}</ | }</ |
processing/compass_example.1375503113.txt.gz · Last modified: 2013/08/03 04:11 by mithat