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

Function createCanvas

assets/js/draw.js:77–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75
76// Create Canvas
77function createCanvas() {
78 canvas.width = window.innerWidth;
79 canvas.height = window.innerHeight - 50;
80 context.fillStyle = bucketColor;
81 context.fillRect(0, 0, canvas.width, canvas.height);
82 body.appendChild(canvas);
83 switchToBrush();
84}
85
86// Clear Canvas
87clearCanvasBtn.addEventListener('click', () => {

Callers 6

setupFunction · 0.70
setupFunction · 0.70
draw.jsFile · 0.70
setupFunction · 0.70
setupFunction · 0.70
setupFunction · 0.70

Calls 1

switchToBrushFunction · 0.70

Tested by

no test coverage detected