smallest line to draw
authorPatrick McGuire <insidenothing@gmail.com>
Mon, 27 Apr 2020 14:06:23 +0000 (10:06 -0400)
committerGitHub <noreply@github.com>
Mon, 27 Apr 2020 14:06:23 +0000 (10:06 -0400)
index.html

index 14f497c..c74fbf5 100644 (file)
@@ -36,7 +36,7 @@
     // Keep track of the mouse button being pressed and draw a dot at current location
     function sketchpad_mouseDown() {
         mouseDown=1;
-        drawDot(ctx,mouseX,mouseY,12);
+        drawDot(ctx,mouseX,mouseY,1);
     }
 
     // Keep track of the mouse button being released
@@ -51,7 +51,7 @@
 
         // Draw a dot if the mouse button is currently being pressed
         if (mouseDown==1) {
-            drawDot(ctx,mouseX,mouseY,12);
+            drawDot(ctx,mouseX,mouseY,1);
         }
     }
 
@@ -75,7 +75,7 @@
         // Update the touch co-ordinates
         getTouchPos();
 
-        drawDot(ctx,touchX,touchY,12);
+        drawDot(ctx,touchX,touchY,1);
 
         // Prevents an additional mousedown event being triggered
         event.preventDefault();
@@ -87,7 +87,7 @@
         getTouchPos(e);
 
         // During a touchmove event, unlike a mousemove event, we don't need to check if the touch is engaged, since there will always be contact with the screen by definition.
-        drawDot(ctx,touchX,touchY,12); 
+        drawDot(ctx,touchX,touchY,1); 
 
         // Prevent a scrolling action as a result of this touchmove triggering.
         event.preventDefault();