var appleTouchIcon = document.getElementById("appleTouchIcon"); var img1 = new Image(); img1.src = "appIcon1.png"; var img2 = new Image(); img2.src = "appIcon2.png"; /* ※実際にやるときは画像のロードを待たないとだめ */ // canvas作成 var canvas = document.createElement("canvas"); var ctx = canvas.getContext("2d"); var size = 152 canvas.width = size; canvas.height = size; ctx.drawImage(img1, 0, 0, size, size); ctx.drawImage