Guest User

Untitled

a guest
Jan 22nd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. function addClick(x, y, dragging) {
  2. clickX.push(x);
  3. clickY.push(y);
  4. clickDrag.push(dragging);
  5. hitColors.push(bgColor);
  6. clickTool.push(tool);
  7. toolSize.push(radius);
  8. }
  9.  
  10. function redraw() {
  11. context.width = canvas.width; // Clears the canvas
  12. context.lineJoin = "round";
  13.  
  14. for (var i = 0; i < clickX.length; i++) {
  15. // this will log rect then eraser over and over
  16. console.log(clickTool[i]);
  17. // ......
  18. }
  19. }
Add Comment
Please, Sign In to add comment