Ask your own question, for FREE!
Computer Science 6 Online
OpenStudy (anonymous):

help me plzzzzz

OpenStudy (anonymous):

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(); } }

OpenStudy (bibby):

and?

OpenStudy (anonymous):

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."

OpenStudy (anonymous):

the hint says this

OpenStudy (anonymous):

for(var i=0; i<=____ ; i+=___){ for(var j=0; j<=____; j+=____{ pushMatrix(); translate(____,_____); drawFlower(_____,____); popMatrix();

OpenStudy (anonymous):

its confuzing

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!