Facebook
From Iram Nida Khalid, 3 Days ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 38
  1. size(600, 600);
  2. int parameter = 100;
  3. int scale = width/parameter;
  4.  
  5. for (float i = 0; i < height; i+=scale) {
  6.   for (float j = 0; j < width; j+=scale) {
  7.     fill(i+j, sin(i)*j, cos(i)*j);
  8.     rect(i,j,scale,scale);    
  9.  }
  10. }
  11. save("activity13.png");