diff options
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); +} |