summaryrefslogtreecommitdiff
path: root/Year_2/IandM
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-02-13 01:08:47 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-02-13 01:08:47 +0100
commit2398d4170d50f0fecbf6774a36f1e7c1a9b2e685 (patch)
tree8aaa67a9b260d42f0b4d4b22b9ee7e8eb1620742 /Year_2/IandM
parentd9727335c55a289a0ceeafc6b6aebc1c6e9d1e65 (diff)
i&m: rects with opacity
Diffstat (limited to 'Year_2/IandM')
-rw-r--r--Year_2/IandM/opacity_rect/README.md1
-rw-r--r--Year_2/IandM/opacity_rect/alpha3.pngbin0 -> 2372 bytes
-rw-r--r--Year_2/IandM/opacity_rect/opacity_rect.pde10
3 files changed, 11 insertions, 0 deletions
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
--- /dev/null
+++ b/Year_2/IandM/opacity_rect/alpha3.png
Binary files 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);
+}