75
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Punkt == | |||
'''Programmcode:''' | '''Programmcode:''' | ||
int x; | int x; | ||
Line 44: | Line 47: | ||
[[File:Punkt mitte.png]] | [[File:Punkt mitte.png]] | ||
[[File:Punkt mitte_grau.png]] | [[File:Punkt mitte_grau.png]] | ||
== Linie == | |||
'''Programmcode:''' | |||
float angle; | |||
float schnell = 20; | |||
float radius = 0; | |||
float groesse = 10; | |||
void setup(){ | |||
size(400, 400); | |||
background(255); | |||
smooth(); | |||
} | |||
void draw(){ | |||
translate(width / 2, height / 2); | |||
rotate(radians(angle)); | |||
strokeWeight(0.2); | |||
stroke(0, random(255)); | |||
line(random(radius), random(radius), random(groesse), random(groesse)); | |||
groesse += 0.2; | |||
angle += schnell; | |||
radius += 0.5; | |||
} | |||
'''Ergebnisse''' |
edits