From 2398d4170d50f0fecbf6774a36f1e7c1a9b2e685 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sat, 13 Feb 2021 01:08:47 +0100 Subject: i&m: rects with opacity --- Year_2/IandM/opacity_rect/opacity_rect.pde | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Year_2/IandM/opacity_rect/opacity_rect.pde (limited to 'Year_2/IandM/opacity_rect/opacity_rect.pde') 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); +} -- cgit v1.2.3-18-g5258