We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf648f2 commit acbef5eCopy full SHA for acbef5e
1 file changed
text-art/app.js
@@ -68,6 +68,7 @@ function scanImage(ctx, cvs){
68
const alpha = scannedData[index+3]/255;
69
const color = `rgba(${red}, ${green}, ${blue}, ${alpha})`;
70
if(alpha>0){
71
+ ctx.globalCompositeOperation = "source-over";
72
ctx.fillStyle = color;
73
ctx.textAlign = "left";
74
ctx.font = gap + 'px Arial';
@@ -118,3 +119,4 @@ for(let i=0;i<2;i++){
118
119
}
120
121
122
+
0 commit comments