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/opacity_rect.pde | |
parent | d9727335c55a289a0ceeafc6b6aebc1c6e9d1e65 (diff) |
i&m: rects with opacity
Diffstat (limited to 'Year_2/IandM/opacity_rect/opacity_rect.pde')
-rw-r--r-- | Year_2/IandM/opacity_rect/opacity_rect.pde | 10 |
1 files changed, 10 insertions, 0 deletions
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); +} |