[READ-ONLY] Mirror of https://github.com/probablykasper/canvas-experiments. Just me learning to use HTML canvas canvas-experiments.kasper.space
canvas html5-canvas website
0

Configure Feed

Select the types of activity you want to include in your feed.

This is how I debug, sadly

KH (Jun 25, 2017, 6:15 PM +0200) 613e8ff8 d362261c

+5 -5
+1 -1
9/index.html
··· 2 2 <html> 3 3 <head> 4 4 <meta charset="utf-8"> 5 - <meta name="theme-color" content="#db5945"> 5 + <meta name="theme-color" content="#2B2E34"> 6 6 <title>Canvas</title> 7 7 <!--Roboto--> <link href="https://fonts.googleapis.com/css?family=Roboto:400,500" rel="stylesheet"> 8 8 <!--Favicon: http:/#F986DF/realfavicongenerator.net -->
+1 -1
9/index.php
··· 2 2 <html> 3 3 <head> 4 4 <meta charset="utf-8"> 5 - <meta name="theme-color" content="#db5945"> 5 + <meta name="theme-color" content="#2B2E34"> 6 6 <title>Canvas</title> 7 7 <!--Roboto--> <link href="https://fonts.googleapis.com/css?family=Roboto:400,500" rel="stylesheet"> 8 8 <!--Favicon: http:/#F986DF/realfavicongenerator.net -->
+3 -3
9/main.js
··· 46 46 // on touch move 47 47 canvas.addEventListener("touchmove", function(e) { 48 48 touchPosLast = touchPos; 49 - touchPos = getTouchpos(e); 49 + touchPos = getTouchPos(e); 50 50 if (drawing) { 51 51 draw(); 52 52 } 53 53 }, false); 54 54 55 55 function startDraw() { 56 - alert("start"); 56 + console.log("start"); 57 57 drawing = true; 58 58 } 59 59 function endDraw() { 60 - alert("start"); 60 + console.log("start"); 61 61 drawing = false; 62 62 } 63 63 function draw() {