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/circles.pde | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Year_2/IandM/circles/circles.pde (limited to 'Year_2/IandM/circles/circles.pde') 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); +} -- cgit v1.2.3-18-g5258