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/04 03:43] – mithat | processing:compass_example [2015/08/01 21:11] (current) – [Refining randomness] mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Of Compasses and Randomness ====== | ====== Of Compasses and Randomness ====== | ||
+ | |||
+ | {{: | ||
The following uses a simple compass to explore how randomness and noise can make representations seem more natural. | The following uses a simple compass to explore how randomness and noise can make representations seem more natural. | ||
Line 16: | Line 18: | ||
===== A simple compass function ===== | ===== A simple compass function ===== | ||
- | {{: | ||
Throughout all the examples on this page, we will use the following function to implement a simple compass: | Throughout all the examples on this page, we will use the following function to implement a simple compass: | ||
Line 121: | Line 122: | ||
| | ||
// draw the compass at " | // draw the compass at " | ||
- | drawCompass(ang+random(-4.0, | + | drawCompass(ang + random(-4.0, |
}</ | }</ | ||
Line 130: | 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 165: | Line 166: | ||
[[http:// | [[http:// | ||
- | [[https:// | + | [[https:// |
- | Processing has a function called '' | + | Processing has a function called '' |
<code java> | <code java> |
processing/compass_example.1375587827.txt.gz · Last modified: 2013/08/04 03:43 by mithat