Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void crearCirculos() {
- int numCirculos = 10;
- int radius = 30;
- float theta = TWO_PI / numCirculos;
- pushMatrix();
- for( int i = 0; i<numCirculos; i++ ) {
- int posX = int(radius * cos(i*theta));
- int posY = int(radius * sin(i*theta));
- pushMatrix();
- translate( posX, posY);
- ellipse(0,0,10,10);
- popMatrix();
- }
- popMatrix();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement