summaryrefslogtreecommitdiff
path: root/Year_2/IandM
diff options
context:
space:
mode:
Diffstat (limited to 'Year_2/IandM')
-rw-r--r--Year_2/IandM/moons/README.md1
-rw-r--r--Year_2/IandM/moons/image.jpgbin0 -> 8206 bytes
-rw-r--r--Year_2/IandM/moons/moons.pde14
-rw-r--r--Year_2/IandM/opacity_rect/image.jpg (renamed from Year_2/IandM/opacity_rect/alpha3.png)bin2372 -> 2372 bytes
4 files changed, 15 insertions, 0 deletions
diff --git a/Year_2/IandM/moons/README.md b/Year_2/IandM/moons/README.md
new file mode 100644
index 0000000..285ee03
--- /dev/null
+++ b/Year_2/IandM/moons/README.md
@@ -0,0 +1 @@
+![image](image.jpg)
diff --git a/Year_2/IandM/moons/image.jpg b/Year_2/IandM/moons/image.jpg
new file mode 100644
index 0000000..148e239
--- /dev/null
+++ b/Year_2/IandM/moons/image.jpg
Binary files differ
diff --git a/Year_2/IandM/moons/moons.pde b/Year_2/IandM/moons/moons.pde
new file mode 100644
index 0000000..7fe6efa
--- /dev/null
+++ b/Year_2/IandM/moons/moons.pde
@@ -0,0 +1,14 @@
+size(500, 500);
+background(255);
+noStroke();
+fill(0);
+
+int k = 0;
+for(int y = 0; y < width; y+=50) {
+ k = (int)lerp(0, 255, y);
+ for(int x = 0; x < height; x+=50) {
+ fill(k);
+ rect(x, y, 50, 50);
+ k+=5;
+ }
+}
diff --git a/Year_2/IandM/opacity_rect/alpha3.png b/Year_2/IandM/opacity_rect/image.jpg
index a15d029..a15d029 100644
--- a/Year_2/IandM/opacity_rect/alpha3.png
+++ b/Year_2/IandM/opacity_rect/image.jpg
Binary files differ