My idea:
-Draw pixel on canvas
-Send request to the server
-Wait for server response
-Server response 200 - keep pixel on the canvas
-Server response 404 - change pixel to previous color
It makes drawing a bit easier, since you don't have to wait for the pixel to appear and make sure its placed right.
My idea: -Draw pixel on canvas -Send request to the server -Wait for server response -Server response 200 - keep pixel on the canvas -Server response 404 - change pixel to previous color
It makes drawing a bit easier, since you don't have to wait for the pixel to appear and make sure its placed right.