(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | var v= 1; | |
− | + | var locationX=0; | |
+ | var locationY=0; | ||
+ | function setup() { | ||
+ | // put setup code here | ||
+ | createCanvas(window.innerWidth, window.innerHeight); | ||
+ | frameRate(60); | ||
} | } | ||
− | function | + | function draw() { |
− | + | // put drawing code here | |
+ | locationX = locationX+v; | ||
+ | locationY = locationY+v; | ||
+ | colorMode(HSB); | ||
+ | background(255, 204, 100); | ||
+ | ellipse(mouseX,mouseY,80,80); | ||
} | } |
Latest revision as of 11:30, 15 August 2019
var v= 1; var locationX=0; var locationY=0; function setup() {
// put setup code here createCanvas(window.innerWidth, window.innerHeight); frameRate(60);
}
function draw() {
// put drawing code here locationX = locationX+v; locationY = locationY+v; colorMode(HSB); background(255, 204, 100); ellipse(mouseX,mouseY,80,80);
}