48
edits
Line 31: | Line 31: | ||
} | } | ||
</source> | |||
===Mit Punkten "malen"=== | |||
Die Punkte werden durch die Mausbewegung über das Feld erzeugt. | |||
[[File:punkt-ss-0004.png|200px|thumb|right|border| Screenshot 1]] | |||
[[File:punkt-ss-0005.png|200px|thumb|right|border| Screenshot 2]] | |||
<source lang="java"> | |||
void setup(){ | |||
size(300,300); | |||
background(255); | |||
} | |||
void draw(){ | |||
point(mouseX,mouseY); | |||
} | |||
</source> | </source> |
edits