diff --git a/petitnote/template/basic/paint_klecks.html b/petitnote/template/basic/paint_klecks.html index 10079fcd..112a43b0 100644 --- a/petitnote/template/basic/paint_klecks.html +++ b/petitnote/template/basic/paint_klecks.html @@ -129,33 +129,40 @@ klecks.openProject({ width: , height: , - - layers: [{ - name: 'Background', + layers: [{ + name: 'Background''背景', opacity: 1, mixModeStr: 'source-over', - image: (() => { const canvas = document.createElement('canvas'); canvas.width = ; canvas.height = ; const ctx = canvas.getContext('2d'); - //PSDがなく画像だけの時はcanvasに読み込む - var img = new Image(); - img.src = ""; - img.onload = function(){ - ctx.drawImage(img, 0, 0); - } + var img = new Image(); + img.src = ""; + img.onload = function(){ + ctx.drawImage(img, 0, 0); + } ctx.save(); ctx.fillStyle = '#fff'; ctx.fillRect(0, 0, canvas.width, canvas.height); ctx.restore(); return canvas; - })(), - }] - }); + })() + },{ + name: 'Layer 1''レイヤー 1', + opacity: 1, + mixModeStr: 'source-over', + image: (() => { + const canvas = document.createElement('canvas'); + canvas.width = ; + canvas.height = ; + return canvas; + })() + } + ]}); }