Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addClick(x, y, dragging) {
- clickX.push(x);
- clickY.push(y);
- clickDrag.push(dragging);
- hitColors.push(bgColor);
- clickTool.push(tool);
- toolSize.push(radius);
- }
- function redraw() {
- context.width = canvas.width; // Clears the canvas
- context.lineJoin = "round";
- for (var i = 0; i < clickX.length; i++) {
- // this will log rect then eraser over and over
- console.log(clickTool[i]);
- // ......
- }
- }
Add Comment
Please, Sign In to add comment