124
edits
(Created page with "== Pattern == For the final homework, I want to create a pattern, which consist of squares, circles and stars. The shape will randomly selected and tweens to the next shape. At...") |
No edit summary |
||
Line 5: | Line 5: | ||
These aspects are: | These aspects are: | ||
<p>''by pressing a key''</p> | <p>''by pressing a key''</p> | ||
* UP Moves the origin of the shapes 20px up | |||
* DOWN Moves the origin of the shapes 20px down | |||
* LEFT Moves the origin of the shapes 20px left | |||
* RIGHT Moves the origin of the shapes 20px right | |||
<p>''by releasing a key''</p> | <p>''by releasing a key''</p> | ||
* a/A adds a new shape on the right, if the current number is below the maximum | |||
* s/S removes the shape on the right (The minimum is 1 shape) | |||
* d/D adds a new shape on the bottom, if the current number is below the maximum | |||
* f/F removes the shape on the bottom (The minimum is 1 shape) | |||
<p>''by mouse click''</p> | <p>''by mouse click''</p> | ||
* Creates a new color for every shape, there will be a tween between the current number and the new one | |||
<p>''by moving the mouse''</p> | <p>''by moving the mouse''</p> | ||
* It will adjust the distance between the shapes, considering the current origin of the shapes | |||
<p>''by adjusting properties in the FinalHomework sketch''</p> | <p>''by adjusting properties in the FinalHomework sketch''</p> | ||
* randomIsOK Will position the shapes in every frame randomly to its origin (not the origin of all shapes) | |||
* randomValue If randomIsOK, it will be the offset from the origin of the shape | |||
* resetBackground If the background should be reset, if no: A rectangle will be drawn with the following color | |||
* bicolor color for the background (without alpha) or for the rectangle (with alpha) | |||
<br clear="all" /> | |||
=== PROGRAM === | |||
[[File:Processing_einfuehrung_andreas.zip|Download SketchFolder]] | |||
[[Image:Processing_einfuehrung_final_andreas.jpg]] | |||
<br clear=all /> | <br clear=all /> |
edits