66
edits
(→Form) |
(→Linie) |
||
Line 14: | Line 14: | ||
Von der Figur.. | Von der Figur.. | ||
[[File:LinieNotClicked.png]] | [[File:LinieNotClicked.png|600px|thumb|right|border|]] | ||
..zur Linie. | ..zur Linie. | ||
[[File:LinieClicked.png]] | [[File:LinieClicked.png|600px|thumb|right|border|]] | ||
<source lang="java"> | |||
void setup() { | |||
size(800, 600); | |||
} | |||
void draw() { | |||
background(255); | |||
if(mousePressed == true) { | |||
fill(255); | |||
} else { | |||
fill(0); | |||
} | |||
beginShape(); | |||
curveVertex(400,400); | |||
curveVertex(400,400); | |||
curveVertex(410,380); | |||
curveVertex(400,360); | |||
curveVertex(390,380); | |||
curveVertex(410,390); | |||
curveVertex(420,390); | |||
curveVertex(420,380); | |||
curveVertex(422,390); | |||
curveVertex(440,380); | |||
curveVertex(442,390); | |||
curveVertex(443,380); | |||
curveVertex(446,380); | |||
curveVertex(447,390); | |||
curveVertex(452,390); | |||
curveVertex(452,380); | |||
curveVertex(454,390); | |||
curveVertex(464,385); | |||
curveVertex(460,380); | |||
curveVertex(458,385); | |||
curveVertex(460,390); | |||
curveVertex(470,400); | |||
curveVertex(475,390); | |||
curveVertex(475,390); | |||
point(420,360); | |||
point(452,360); | |||
endShape(); | |||
} | |||
==Form== | ==Form== |
edits