Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var canvas = document.getElementById("canvas");
- if (canvas.getContext) {
- var ctx = canvas.getContext("2d");
- ctx.fillStyle = "rgb(200,0,0)";
- ctx.fillRect (user['x']-5, user['y']-5, user['x']+5, user['y']+5);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement