...
- Create a new shape instead of the smiley, and put exactly 100 repetitions on the screen
- Modify the colour of your and/or the shape with each repetition
...
Code Block | ||
---|---|---|
| ||
int W = 60; void setup() { size(660,660); noStroke(); colorMode(HSB); } void draw() { background(255); for (int i =1; i<=10; i++) { for (int j =1; j<=10; j++) { float hue = j*i*2.5; fill(hue,150, 255); myShape(i*W, j*W); } } } void myShape(int x, int y) { int D = W/23; //ellipse(x, y, W, W); triangle(x, y-D, x-D, y+D, x+D, y+D); } |
...