(x, y, size, color, erase)
| 111 | |
| 112 | // Store Drawn Lines in DrawnArray |
| 113 | function 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 |
| 125 | function getMousePosition(event) { |