237
edits
| Line 456: | Line 456: | ||
| ==Group C== | ==Group C== | ||
| [[File: | [[File:rect1.jpg]] [[File:rect2.jpg]] [[File:rect3.jpg]] | ||
| float rotationVal = 0.00; | |||
| void setup(){ | void setup(){ | ||
|    size(700, 700); |    size(700, 700); | ||
| Line 465: | Line 465: | ||
|    noStroke(); |    noStroke(); | ||
| } | } | ||
| void draw(){ | void draw(){ | ||
|    float C = mouseX * 0.1; |    float C = mouseX * 0.1; | ||
|    float S = mouseY * 0.05; |    float S = mouseY * 0.05; | ||
|    background(255); |    background(255); | ||
|    stroke(255); |    stroke(255); | ||
|    strokeWeight(S * 0.1); |    strokeWeight(S * 0.1); | ||
|    translate(width * 0.5, height * 0.5); |    translate(width * 0.5, height * 0.5); | ||
|    fill(45 + C); |    fill(45 + C); | ||
|    rotate( rotationVal ); |    rotate( rotationVal ); | ||
|    rect(0, 0, 452, 452, 20+S); |    rect(0, 0, 452, 452, 20+S); | ||
|    fill(65 + C); |    fill(65 + C); | ||
|    rotate( rotationVal ); |    rotate( rotationVal ); | ||
|    rect(0, 0, 320, 320, 18+S); |    rect(0, 0, 320, 320, 18+S); | ||
|    fill(85 + C); |    fill(85 + C); | ||
|    rotate( rotationVal ); |    rotate( rotationVal ); | ||
|    rect(0, 0, 226, 226, 16+S); |    rect(0, 0, 226, 226, 16+S); | ||
|    fill(105 + C); |    fill(105 + C); | ||
|    rotate( rotationVal ); |    rotate( rotationVal ); | ||
|    rect(0, 0, 160, 160, 14+S); |    rect(0, 0, 160, 160, 14+S); | ||
|    fill(125 + C); |    fill(125 + C); | ||
|    rotate( rotationVal ); |    rotate( rotationVal ); | ||
|    rect(0, 0, 113, 113, 12+S); |    rect(0, 0, 113, 113, 12+S); | ||
|    fill(145 + C); |    fill(145 + C); | ||
|    rotate( rotationVal ); |    rotate( rotationVal ); | ||
|    rect(0, 0, 80, 80, 10+S); |    rect(0, 0, 80, 80, 10+S); | ||
|    fill(165 + C); |    fill(165 + C); | ||
|    rotate( rotationVal ); |    rotate( rotationVal ); | ||
|    rect(0, 0, 57, 57, 8+S); |    rect(0, 0, 57, 57, 8+S); | ||
|    fill(185 + C); |    fill(185 + C); | ||
|    rotate( rotationVal ); |    rotate( rotationVal ); | ||
|    rect(0, 0, 40, 40, 6+S); |    rect(0, 0, 40, 40, 6+S); | ||
|    rotationVal += 0.01; |    rotationVal += 0.01; | ||
| } | } | ||
edits