Sincerely Emma ]]>

The two numbers that need to be changed are 12 (which represents the number of marks) and 30 (which represents the angle from mark to mark).

360 / 12 = 30

360 / 60 = ??

how would you make it so that you can draw 60 tickmarks on the clock?

]]>regardless, i might like to use this as a class project in my upcoming processing class. i hope that is ok.

thanks!

–matt

]]>`fill(0);`

for (int i = 1; i < = nbr_circles; ++i) {
float angle = i * TWO_PI / nbr_circles;
float x = cx + cos(angle) * lg_rad;
float y = cy + sin(angle) * lg_rad;
ellipse(x, y, sm_diam, sm_diam);
}

You can use random numbers to control the color, and size and offset

of each circle.

`fill(0);`

noStroke();

```
```

```
for (int i = 1; i < = nbr_circles; ++i) {
fill(random(255));
float angle = i * TWO_PI / nbr_circles;
float x = cx + cos(angle) * lg_rad;
float y = cy + sin(angle) * lg_rad;
float d = random(3,sm_diam);
float ox = random(-3,3);
float oy= random(-3,3);
ellipse(x+ox, y+oy, d, d);
}
```

Here's a similar loop where I draw the points of a star, but the points are individually moving, controlled by the noise generator, rather than random numbers. This way, the points can move smoothly.

Using the same technique, in a draw() function -- using noise instead of random -- you can make the individual circles smoothly morph.

]]>