OLD | NEW |
1 var IS_SKV8 = typeof document == "undefined"; | 1 var IS_SKV8 = typeof document == "undefined"; |
2 var HAS_PATH = typeof Path != "undefined"; | 2 var HAS_PATH = typeof Path != "undefined"; |
3 | 3 |
4 var NumTeeth = 24; | 4 var NumTeeth = 24; |
5 var NumGears = 60; | 5 var NumGears = 60; |
6 var DeltaTheta = Math.PI/90; | 6 var DeltaTheta = Math.PI/90; |
7 var FaceColors = ["#000099", "#006600", "#990000", "#EEEE00"]; | 7 var FaceColors = ["#000099", "#006600", "#990000", "#EEEE00"]; |
8 var SideColors = ["#0000FF", "#009900", "#FF0000", "#CCCC00"]; | 8 var SideColors = ["#0000FF", "#009900", "#FF0000", "#CCCC00"]; |
9 | 9 |
10 function makeGear(pathLike, r) { | 10 function makeGear(pathLike, r) { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 var canvas = document.getElementById("gears"); | 132 var canvas = document.getElementById("gears"); |
133 var ctx = canvas.getContext("2d"); | 133 var ctx = canvas.getContext("2d"); |
134 function drawCallback() { | 134 function drawCallback() { |
135 onDraw(ctx); | 135 onDraw(ctx); |
136 setTimeout(drawCallback, 1); | 136 setTimeout(drawCallback, 1); |
137 } | 137 } |
138 setTimeout(drawCallback, 1); | 138 setTimeout(drawCallback, 1); |
139 } | 139 } |
140 } | 140 } |
141 | 141 |
| 142 console.log("HAS_PATH: " + HAS_PATH); |
OLD | NEW |