Canvas Drawing Help
15.10 12:36
vor 5.7 Monaten
Hi everyone. I just joined the group and not great at Javascript. Just know enough to get me into trouble which I am in Making a small interactive app similar to an Identikit where you choose heads, Hi everyone. I just joined the group and not great at Javascript. Just know enough to get me into trouble which I am in Making a small interactive app similar to an Identikit where you choose heads, eyes, nose, mouth etc then draw all overlay ed images to the canvas and just turn visibility on and off. Problem I am having is adusting these two lines of script so they can accept a variable to change the element Head1 to Head 2,3,4,5 etc and also the ctx.drawimage to similar. I have 5 text boxes that hold the script IDs and I grab the IDs from here and somehow need to replace them in the below code. I have tried as hard as I can with no success var img = GetElement(*Head1*); ctx.drawImage(i