Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement