Skip to content

Instantly share code, notes, and snippets.

@SLOLNE
Created February 10, 2016 19:27
Show Gist options
  • Save SLOLNE/db3a6e54353ec028576c to your computer and use it in GitHub Desktop.
Save SLOLNE/db3a6e54353ec028576c to your computer and use it in GitHub Desktop.
void setup (){
size(600, 600);//size of canvas
background(120, 0, 11);//bachground colour HSB
}
void draw() {//opens draw loop which runs on loop
noStroke();
fill(230, 45, 45);
ellipse(34, 34, 50, 50);//draws a cricle at x and y coords 34, 34 with size 50 by 50
ellipse(134, 134, 50, 50);//draws another circle
ellipse(234, 234, 50, 50);//draws another circle
ellipse(334, 334, 50, 50);//"""
ellipse(434, 434, 50, 50);//"""
ellipse(534, 534, 50, 50);//"""
noStroke();
fill(230, mouseX, mouseY, 50);//fill is pretty and ranges in a rainbow
ellipse(mouseX, mouseY, 50, 50);//new circle same diameter as the others but it can move around
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment