summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
+}