From cf228fd6b77a0efbdd4846d41a436663f2ae7eb1 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 22 Feb 2021 16:43:59 +0100 Subject: i&m: gif exercises --- Year_2/IandM/rote/rote.pde | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Year_2/IandM/rote/rote.pde (limited to 'Year_2/IandM/rote/rote.pde') diff --git a/Year_2/IandM/rote/rote.pde b/Year_2/IandM/rote/rote.pde new file mode 100644 index 0000000..1292328 --- /dev/null +++ b/Year_2/IandM/rote/rote.pde @@ -0,0 +1,20 @@ +void setup() { + size(500, 500); +} + +int th = 0; + +void draw() { + background(#ffffff); + translate(width/2, height/2); + rotate(radians(th++)); + stroke(0); + noFill(); + strokeWeight(20); + ellipseMode(RADIUS); + ellipse(0, 0, 200, 200); + + noStroke(); + fill(0); + triangle(0, -200, 180, 100, -180, 100); +} -- cgit v1.2.3-18-g5258