Skip to content

Instantly share code, notes, and snippets.

@bogoreh
Created March 6, 2021 12:16
Show Gist options
  • Select an option

  • Save bogoreh/a9330325babdcf79dd823c6ffb4c472c to your computer and use it in GitHub Desktop.

Select an option

Save bogoreh/a9330325babdcf79dd823c6ffb4c472c to your computer and use it in GitHub Desktop.
noStroke();
var leftX = 153;
var rightX = 222;
var sunRadius = 100;
draw = function() {
background(184, 236, 255);
fill(255, 170, 0);
ellipse(200, 100, sunRadius+=2, sunRadius);
// clouds
fill(255, 255, 255);
// left cloud
ellipse(leftX--, 150, 126, 97);
ellipse(leftX+=-61, 150, 70, 60);
ellipse(leftX-=1, 150, 70, 60);
// right cloud
ellipse(rightX, 100, 126, 97);
ellipse(rightX+=1, 100, 70, 60);
ellipse(rightX+1, 100, 70, 60);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment