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