changed color picking, removed server pings

This commit is contained in:
2024-04-06 15:26:38 +03:00
parent 554bcb4bd3
commit 2ba725f232
4 changed files with 13 additions and 8 deletions

View File

@@ -128,6 +128,11 @@ function redraw() {
// All the code that is making zooms and moving around cavnas is made with big help of http://phrogz.net/tmp/canvas_zoom_to_cursor.html. Thanks alot!
window.onload = function() {
colorInput.addEventListener("change", (e) => {
console.log("changed")
currentColor = e.target.value;
}, false);
connect();
var ctx = canvas.getContext("2d");
trackTransforms(ctx);