Stuck on solution "Rotation Challenge"
hey, i'm stuck on the "Challenge Rotation" in the course: Advanced JS: Games & Visualizations Transformations
Since there's no discussion, I can't get the final solution, which I need for my own resolve.
Any feedback / help would be much appreciated.
TY
My code has been developed as far as:
noStroke();
background(0, 0, 0);
var r = 255;
var g = 90;
var b = 0;
fill(r, g, b);
for (var i = 0; i < 360; i+=30) {
pushMatrix();
translate(200, 200);
for (var a = i; a < 360; a+=30) {
rotate(i);
fill(r, g, b);
r -= 12;
g += 10;
b += 10;
rect(0, 0, 150, 15);
}
popMatrix();
}
Please sign in to leave a comment.