use correct scale for crest getImageData

This commit is contained in:
goat 2021-05-26 22:52:17 +02:00
parent f1396799f4
commit 4cd62ea50e
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -155,7 +155,7 @@ class CardCreator {
var crestLayer0 = await loadImage(crestAry[2]);
ctx.drawImage(crestLayer0, 0, 0, fcCrestScale, fcCrestScale);
var imgd = ctx.getImageData(0, 0, 135, 135),
var imgd = ctx.getImageData(0, 0, fcCrestScale, fcCrestScale),
pix = imgd.data,
newColor = { r: 0, g: 0, b: 0, a: 0 };