Computer Science, asked by lunakrystal, 1 year ago

if someone here knows JavaScript... please tell me what is wrong with the following code:


var drawRainbow = function(rainbow) {
noFill();
strokeWeight(5);
stroke(255, 0, 0);
arc(rainbow.x, rainbow.y, rainbow.radius, rainbow.radius, 180, 360);
stroke(250, 200, 0);
arc(rainbow.x, rainbow.y, rainbow.radius-10, rainbow.radius-10, 180, 360);
stroke(240, 255, 102);
arc(rainbow.x, rainbow.y, rainbow.radius-20, rainbow.radius-20, 180, 360);
stroke(29, 255, 13);
arc(rainbow.x, rainbow.y, rainbow.radius-30, rainbow.radius-30, 180, 360);
stroke(122, 155, 255);
arc(rainbow.x, rainbow.y, rainbow.radius-40, rainbow.radius-40, 180, 360);
};

Answers

Answered by PiyushGates
0
spaces are mistook as a way of xoding
Similar questions