12,297
edits
m (→Sofastoff) |
m (syntaxhighlight verwenden!) |
||
Line 507: | Line 507: | ||
} | } | ||
} | } | ||
< | </syntaxhighlight> | ||
- Tristan Weis | - Tristan Weis | ||
Line 516: | Line 516: | ||
Most part of spider consists of symmetrical patterns. The definition of size (width, height, P3D) can let the patterns move around the y-axis and present as the mirror effects. Looking closely to the spider, it can be divided into 4 parts, antenna, head, body, and leg, which are mostly made up by circles and lines. | Most part of spider consists of symmetrical patterns. The definition of size (width, height, P3D) can let the patterns move around the y-axis and present as the mirror effects. Looking closely to the spider, it can be divided into 4 parts, antenna, head, body, and leg, which are mostly made up by circles and lines. | ||
# The antenna is not a regular pattern,use the shape() to draw on of this and then move it around the Y-axis for (PI). <br/>'''Function''': ''beginShape();endShape();rotateY ();'' | |||
<br/>'''Function''': ''beginShape();endShape();rotateY ();'' | # The head of spider is very simple, only a ellipse. <br/>'''Function''': ''ellipse(), fill()'' | ||
# body can also be seen as collection of ellipse. Two big ellipse are surrounded by 6 small ellipses. <br/>'''Function''': ''ellipse ();fill();for(){};rotate();'' | |||
<br/>'''Function''': ''ellipse(), fill()'' | # The spider has 8 legs, 3 long and 5 short feet. Use for(){} to copy the lines and make it turns in the certain angle. | ||
#'''Function''': '' for(){};line();strokeWeight();rotate();pushMatrix();popMateix();'' | |||
<br/>'''Function''': ''ellipse ();fill();for(){};rotate();'' | |||
——Lu | ——Lu | ||
Line 531: | Line 528: | ||
==== Growing Ivy ==== | ==== Growing Ivy ==== | ||
[[File: | [[File:tree all elements changed.jpg|800px]] | ||
The pattern consists of one basic shape – the shape of the leaves. One leave has an organic figure which could be transformed into a geometric form. This geometric shape exists of three equilateral triangles: the first one is the biggest with the hypotenuse at the bottom. The other two triangles are smaller than the first one. They are half sized and arranged in a diagonal way. Two-thirds of those triangles are inside the bigger triangle. Their top shows one to the left and one to the right side. | The pattern consists of one basic shape – the shape of the leaves. One leave has an organic figure which could be transformed into a geometric form. This geometric shape exists of three equilateral triangles: the first one is the biggest with the hypotenuse at the bottom. The other two triangles are smaller than the first one. They are half sized and arranged in a diagonal way. Two-thirds of those triangles are inside the bigger triangle. Their top shows one to the left and one to the right side. | ||
Line 539: | Line 536: | ||
===== First Sketch ===== | ===== First Sketch ===== | ||
[[File: | [[File:green pattern.jpg]] | ||
<syntaxhighlight lang="cpp"> | |||
int x = 0; | int x = 0; | ||
Line 577: | Line 574: | ||
} | } | ||
} | } | ||
</syntaxhighlight> | |||
===== Second Sketch ===== | ===== Second Sketch ===== | ||
[[File: | [[File:black pattern.jpg]] | ||
<syntaxhighlight lang="cpp"> | |||
int x = 0; | int x = 0; | ||
Line 617: | Line 614: | ||
} | } | ||
} | } | ||
</syntaxhighlight> | |||
===== Third Sketch ===== | ===== Third Sketch ===== | ||
[[File: | [[File:layered pattern.jpg]] | ||
<syntaxhighlight lang="cpp"> | |||
int x = 0; | int x = 0; | ||
Line 705: | Line 702: | ||
popMatrix(); | popMatrix(); | ||
} | } | ||
</syntaxhighlight> | |||
=== Andreas Dietrich === | === Andreas Dietrich === | ||
Sketches for the practice homework: | Sketches for the practice homework: | ||
===== First Sketch ===== | ===== First Sketch ===== | ||
[[File: | [[File:Homework AD 1.png]] | ||
int dia=50; | <syntaxhighlight lang="cpp"> | ||
int innerDia=150; | int dia=50; | ||
int steps=30; | int innerDia=150; | ||
int steps2=30; | int steps=30; | ||
int steps3=30; | int steps2=30; | ||
int steps3=30; | |||
int offset1=0; | int offset1=0; | ||
int offset2=10; | int offset2=10; | ||
int offset3=20; | int offset3=20; | ||
size(900, 600); | size(900, 600); | ||
Line 754: | Line 752: | ||
} | } | ||
} | } | ||
</syntaxhighlight> | |||
===== Second Sketch ===== | ===== Second Sketch ===== | ||
[[File: | [[File:Homework AD 2.png]] | ||
int dia=50; | <syntaxhighlight lang="cpp"> | ||
int innerDia=150; | int dia=50; | ||
int steps=60; | int innerDia=150; | ||
int steps=60; | |||
float offset1=0; | float offset1=0; | ||
float offset2=10; | float offset2=10; | ||
float offset3=20; | float offset3=20; | ||
float CONST_OFFSET1=0; | float CONST_OFFSET1=0; | ||
float CONST_OFFSET2=10; | float CONST_OFFSET2=10; | ||
float CONST_OFFSET3=20; | float CONST_OFFSET3=20; | ||
float speed1=1; | float speed1=1; | ||
float speed2=0.5; | float speed2=0.5; | ||
float speed3=0.7; | float speed3=0.7; | ||
void setup() { | void setup() { | ||
Line 825: | Line 824: | ||
} | } | ||
} | } | ||
</syntaxhighlight> | |||
===== Third Sketch ===== | ===== Third Sketch ===== | ||
[[File: | [[File:Homework AD 3.png]] | ||
<syntaxhighlight lang="cpp"> | |||
int dia=50; | |||
int innerDia=150; | |||
int steps=30; | |||
float offset1=0; | |||
float offset2=10; | |||
float offset3=20; | |||
float | float CONST_OFFSET1=0; | ||
float | float CONST_OFFSET2=10; | ||
float | float CONST_OFFSET3=20; | ||
float | float speed1=1; | ||
float | float speed2=0.5; | ||
float | float speed3=0.7; | ||
float scaleVal=0.1; | |||
float currentScale=1; | |||
float toScaleVal=1; | |||
float scaleVal=0.1; | |||
float currentScale=1; | |||
float toScaleVal=1; | |||
void setup() { | void setup() { | ||
Line 927: | Line 926: | ||
} | } | ||
} | } | ||
</syntaxhighlight> | |||
= 13/11 = | = 13/11 = | ||