Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int centerX = 0;
- int centerY = 0;
- int radiusX = 60;
- int radiusY = 60;
- float rotatie = 0;
- void setup() {
- size(800, 800);
- smooth();
- }
- void draw() {
- background(255);
- for (int i = -50; i < width+50; i = i + 35) {
- for (int j = -50; j < width+50; j = j + 35) {
- pushMatrix();
- translate(i, j);
- rotate(rotatie+j*(mouseX*.000025)+i*(mouseX*.000025));
- strokeWeight(1);
- stroke(0);
- noFill();
- ellipse(centerX, centerY, radiusX, radiusY);
- noStroke();
- fill(0);
- ellipse(radiusX/2, 0, 8, 8);
- popMatrix();
- }
- }
- rotatie = rotatie + .1;
- //println(rotatie);
- }
Add Comment
Please, Sign In to add comment