showing results for - "js canvas translate"
Kellin
20 Oct 2017
1var c = document.getElementById("myCanvas");
2var ctx = c.getContext("2d");
3ctx.fillRect(10, 10, 100, 50);
4ctx.translate(70, 70);
5ctx.fillRect(10, 10, 100, 50);