MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / draw

Function draw

assets/js/ScratchOff.js:5–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3}
4
5function draw() {
6 strokeWeight(50);
7 if (mouseIsPressed) {
8 line(mouseX, mouseY, pmouseX, pmouseY);
9 }
10}
11
12function windowResized() {
13 resizeCanvas(windowWidth - 5, windowHeight - 5);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected