Answers for "js canvas translate"

2

js canvas translate

var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.fillRect(10, 10, 100, 50);
ctx.translate(70, 70);
ctx.fillRect(10, 10, 100, 50);
Posted by: Guest on April-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language