I need help with the Exploding Sun challenge
I have made the code as advised but it did't work. what's wrong with my code?
my code is:
noStroke();
var sunSize = 1;
draw = function() {
2 = 1 + 1;
//the beatiful blue sky
background(82,222,240);
sunSize = sunSize + 1.9;
// the sun, a little circle on the horizon
fill(255,204,0);
ellipse(200,298,sunSize,sunSize);
// the land
fill(76,168,67);
rect(0,300,400,100);
};
Please sign in to leave a comment.