vunhucuongit
commited on
Commit
·
fa865ab
1
Parent(s):
afb6be7
Update en/script.js
Browse files- en/script.js +4 -4
en/script.js
CHANGED
@@ -121,8 +121,8 @@ var dojob = function(run_id) {
|
|
121 |
ruler = tf.tensor([...Array(text.shape[0]).keys()]);
|
122 |
var bias = parseInt(document.getElementById("bias").value) / 100 * 3;
|
123 |
|
124 |
-
cur_x =
|
125 |
-
cur_y =
|
126 |
var path = [];
|
127 |
var dx = 0.;
|
128 |
var dy = 0;
|
@@ -195,8 +195,8 @@ var dojob = function(run_id) {
|
|
195 |
});
|
196 |
|
197 |
[dx,dy,eos_] = input.dataSync();
|
198 |
-
dy = -dy * 3;
|
199 |
-
dx = dx * 3;
|
200 |
if (eos == 0.) {
|
201 |
ctx.beginPath();
|
202 |
ctx.moveTo(cur_x, cur_y, 0, 0);
|
|
|
121 |
ruler = tf.tensor([...Array(text.shape[0]).keys()]);
|
122 |
var bias = parseInt(document.getElementById("bias").value) / 100 * 3;
|
123 |
|
124 |
+
var cur_x = 10;
|
125 |
+
var cur_y = canvas.height/2;
|
126 |
var path = [];
|
127 |
var dx = 0.;
|
128 |
var dy = 0;
|
|
|
195 |
});
|
196 |
|
197 |
[dx,dy,eos_] = input.dataSync();
|
198 |
+
dy = -dy * 3 * 0.6;
|
199 |
+
dx = dx * 3 * 0.6;
|
200 |
if (eos == 0.) {
|
201 |
ctx.beginPath();
|
202 |
ctx.moveTo(cur_x, cur_y, 0, 0);
|