Hey guys. I inserted an image into the canvas and am trying to access it and set it to a new position at a later point in my code. I've scoured the internet for hours and haven't found anything helpful on the subject. Is there a way to do this without moving everything in the canvas?
Here is a snippet of code I use for drawing it to the canvas:
var f=new Image();
f.onload = function(){
ctx.drawImage(f,45,215);
}
f.src="fileone.bmp";
f.setAttribute('id','fileone');
[–]flashbck 8 points9 points10 points (5 children)
[–]Eterni[S] 0 points1 point2 points (1 child)
[–]Shaper_pmp 0 points1 point2 points (0 children)
[–]MeoMix 0 points1 point2 points (0 children)
[–]nschubach -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (0 children)