From 2398d4170d50f0fecbf6774a36f1e7c1a9b2e685 Mon Sep 17 00:00:00 2001
From: Santo Cariotti <santo@dcariotti.me>
Date: Sat, 13 Feb 2021 01:08:47 +0100
Subject: i&m: rects with opacity

---
 Year_2/IandM/opacity_rect/README.md        |   1 +
 Year_2/IandM/opacity_rect/alpha3.png       | Bin 0 -> 2372 bytes
 Year_2/IandM/opacity_rect/opacity_rect.pde |  10 ++++++++++
 3 files changed, 11 insertions(+)
 create mode 100644 Year_2/IandM/opacity_rect/README.md
 create mode 100644 Year_2/IandM/opacity_rect/alpha3.png
 create mode 100644 Year_2/IandM/opacity_rect/opacity_rect.pde

diff --git a/Year_2/IandM/opacity_rect/README.md b/Year_2/IandM/opacity_rect/README.md
new file mode 100644
index 0000000..285ee03
--- /dev/null
+++ b/Year_2/IandM/opacity_rect/README.md
@@ -0,0 +1 @@
+![image](image.jpg)
diff --git a/Year_2/IandM/opacity_rect/alpha3.png b/Year_2/IandM/opacity_rect/alpha3.png
new file mode 100644
index 0000000..a15d029
Binary files /dev/null and b/Year_2/IandM/opacity_rect/alpha3.png differ
diff --git a/Year_2/IandM/opacity_rect/opacity_rect.pde b/Year_2/IandM/opacity_rect/opacity_rect.pde
new file mode 100644
index 0000000..5e78c10
--- /dev/null
+++ b/Year_2/IandM/opacity_rect/opacity_rect.pde
@@ -0,0 +1,10 @@
+background(0);
+size(500, 500);
+
+noStroke();
+int k = 50;
+
+for(int i = k; i < width-(k*4); i+=20) {
+  fill(255, 255, 255, 100);
+  rect(i, i, k*3, k*3);
+}
-- 
cgit v1.2.3-18-g5258