From 7f14bd95502a017500a4e1f3e7767ee68b1c55e5 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sat, 13 Feb 2021 00:36:04 +0100 Subject: i&m: add exercise --- Year_2/IandM/circles/README.md | 1 + Year_2/IandM/circles/circles.pde | 14 ++++++++++++++ Year_2/IandM/circles/image.jpg | Bin 0 -> 38763 bytes 3 files changed, 15 insertions(+) create mode 100644 Year_2/IandM/circles/README.md create mode 100644 Year_2/IandM/circles/circles.pde create mode 100644 Year_2/IandM/circles/image.jpg (limited to 'Year_2/IandM/circles') diff --git a/Year_2/IandM/circles/README.md b/Year_2/IandM/circles/README.md new file mode 100644 index 0000000..285ee03 --- /dev/null +++ b/Year_2/IandM/circles/README.md @@ -0,0 +1 @@ +![image](image.jpg) diff --git a/Year_2/IandM/circles/circles.pde b/Year_2/IandM/circles/circles.pde new file mode 100644 index 0000000..0bab8c2 --- /dev/null +++ b/Year_2/IandM/circles/circles.pde @@ -0,0 +1,14 @@ + +size(500, 500); + +background(255); + +line(0, height/2, width, height/2); + +fill(0, 0, 0, 1); +ellipseMode(CORNER); + + +for (int c = 50; c < width-50; c+=50) { + ellipse(50, height/2-(c/2), c, c); +} diff --git a/Year_2/IandM/circles/image.jpg b/Year_2/IandM/circles/image.jpg new file mode 100644 index 0000000..cb898d9 Binary files /dev/null and b/Year_2/IandM/circles/image.jpg differ -- cgit v1.2.3-18-g5258