diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-02-13 01:08:47 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-02-13 01:08:47 +0100 |
commit | 2398d4170d50f0fecbf6774a36f1e7c1a9b2e685 (patch) | |
tree | 8aaa67a9b260d42f0b4d4b22b9ee7e8eb1620742 /Year_2/IandM/opacity_rect | |
parent | d9727335c55a289a0ceeafc6b6aebc1c6e9d1e65 (diff) |
i&m: rects with opacity
Diffstat (limited to 'Year_2/IandM/opacity_rect')
-rw-r--r-- | Year_2/IandM/opacity_rect/README.md | 1 | ||||
-rw-r--r-- | Year_2/IandM/opacity_rect/alpha3.png | bin | 0 -> 2372 bytes | |||
-rw-r--r-- | Year_2/IandM/opacity_rect/opacity_rect.pde | 10 |
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 Binary files differnew file mode 100644 index 0000000..a15d029 --- /dev/null +++ b/Year_2/IandM/opacity_rect/alpha3.png 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); +} |