summaryrefslogtreecommitdiff
path: root/Year_2/IandM/rote/rote.pde
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-02-22 16:43:59 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-02-22 16:43:59 +0100
commitcf228fd6b77a0efbdd4846d41a436663f2ae7eb1 (patch)
tree2a7925381091825982b65b3d8cff4a46830090d9 /Year_2/IandM/rote/rote.pde
parent020ac5aa148c2e70aa34fb798dbbe9b8778f32a0 (diff)
i&m: gif exercises
Diffstat (limited to 'Year_2/IandM/rote/rote.pde')
-rw-r--r--Year_2/IandM/rote/rote.pde20
1 files changed, 20 insertions, 0 deletions
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);
+}