void setup() { size (800, 600); } void draw () { background (0, 0, 0); stroke(255); line (0, mouseY, width, mouseY); line (mouseX, 0, mouseX, height); rect (mouseX / 6, mouseY / 6, mouseX * 2/3, mouseY * 2/3); triangle (mouseX, mouseY, width, mouseY, (width - mouseX) / 2 + mouseX, 0); line (0, mouseY, mouseX, height); line (0, height, mouseX, mouseY); arc ((width - mouseX) / 2 + mouseX, (height - mouseY) / 2 + mouseY, width - mouseX, height - mouseY, 0, TWO_PI - ((float)mouseY / (float)height * TWO_PI)); }
GWC – A16 – Semaine 07 – Réponse au défi
par
Étiquettes :
Laisser un commentaire