diff --git a/client/default.css b/client/default.css index 5dff167..8b4da82 100644 --- a/client/default.css +++ b/client/default.css @@ -31,7 +31,7 @@ canvas { width: 100%; height: 100%; display: block; - cursor: crosshair; + cursor: url('icons/cursor.svg') 7 7, crosshair; } canvas.movemode { diff --git a/client/icons/cursor.svg b/client/icons/cursor.svg new file mode 100644 index 0000000..ab420de --- /dev/null +++ b/client/icons/cursor.svg @@ -0,0 +1,50 @@ + + + + + + + + + + diff --git a/client/index.js b/client/index.js index d1159ef..ef16ee1 100644 --- a/client/index.js +++ b/client/index.js @@ -11,7 +11,7 @@ const config = { buffer_first_touchmoves: 5, debug_print: true, min_zoom: 0.05, - max_zoom: 100.0, + max_zoom: 10.0, initial_offline_timeout: 1000, default_color: 0x00, default_width: 8, diff --git a/client/webgl_geometry.js b/client/webgl_geometry.js index 2696f55..f1ea6a7 100644 --- a/client/webgl_geometry.js +++ b/client/webgl_geometry.js @@ -3,6 +3,9 @@ function push_point(s, x, y, u, v, r, g, b, type) { ser_f32(s, y); ser_f32(s, u); ser_f32(s, v); + // ser_u8(s, Math.floor(Math.random() * 255)); + // ser_u8(s, Math.floor(Math.random() * 255)); + // ser_u8(s, Math.floor(Math.random() * 255)); ser_u8(s, r); ser_u8(s, g); ser_u8(s, b); diff --git a/client/webgl_shaders.js b/client/webgl_shaders.js index ea03af6..4d8a897 100644 --- a/client/webgl_shaders.js +++ b/client/webgl_shaders.js @@ -1,8 +1,8 @@ const stroke_vs_src = ` attribute float a_type; - attribute vec2 a_pos; - attribute vec2 a_texcoord; - attribute vec3 a_color; + attribute vec2 a_pos; + attribute vec2 a_texcoord; + attribute vec3 a_color; uniform vec2 u_scale; uniform vec2 u_res;