15 lines
213 B
JavaScript
15 lines
213 B
JavaScript
|
function setup() {
|
||
|
createCanvas(640, 480);
|
||
|
var white = 0;
|
||
|
var blakck = 255;
|
||
|
}
|
||
|
|
||
|
function draw() {
|
||
|
if (mouseIsPressed) {
|
||
|
fill(white);
|
||
|
} else {
|
||
|
fill(black);
|
||
|
}
|
||
|
ellipse(mouseX, mouseY, 80, 80);
|
||
|
}
|