help me plzzzzz
background(66, 156, 33); noStroke(); var drawFlower = function(centerX, centerY) { var centerRadius = 30; var petalRadius = 20; var toPetal1 = centerRadius-5; var toPetal2 = centerRadius-13; fill(255, 0, 213); ellipse(centerX, centerY, centerRadius, centerRadius); fill(240, 206, 12); ellipse(centerX+toPetal1,centerY, petalRadius, petalRadius); ellipse(centerX-toPetal1,centerY, petalRadius, petalRadius); ellipse(centerX,centerY+toPetal1, petalRadius, petalRadius); ellipse(centerX,centerY-toPetal1, petalRadius, petalRadius); fill(192, 110, 224); ellipse(centerX+toPetal2, centerY+toPetal2, petalRadius, petalRadius); ellipse(centerX-toPetal2, centerY+toPetal2, petalRadius, petalRadius); ellipse(centerX+toPetal2, centerY-toPetal2, petalRadius, petalRadius); ellipse(centerX-toPetal2, centerY-toPetal2, petalRadius, petalRadius); }; for(var i=0; i<=width; i+=100){ pushMatrix(); translate(i,0); drawFlower(50,50); popMatrix(); } for(var i=0; i<=width; i+=100){ for(var j=0; j<=width; j+=100){ pushMatrix(); translate(j,0); drawFlower(50,i+50); popMatrix(); } }
and?
i cant figure out why it keeps saying "The magnitude of the y component of the translation should come from the value in the inner for loop."
the hint says this
for(var i=0; i<=____ ; i+=___){ for(var j=0; j<=____; j+=____{ pushMatrix(); translate(____,_____); drawFlower(_____,____); popMatrix();
its confuzing
Join our real-time social learning platform and learn together with your friends!