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

Function storeDrawn

assets/js/draw.js:113–122  ·  view source on GitHub ↗
(x, y, size, color, erase)

Source from the content-addressed store, hash-verified

111
112// Store Drawn Lines in DrawnArray
113function storeDrawn(x, y, size, color, erase) {
114 const line = {
115 x,
116 y,
117 size,
118 color,
119 erase,
120 };
121 drawnArray.push(line);
122}
123
124// Get Mouse Position
125function getMousePosition(event) {

Callers 1

draw.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected