You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, i wanna know why the code below is like this:
if(options.overlay != false) {
ctx.beginPath();
ctx.rect(0, 0, tempImg.width, tempImg.width);
ctx.fillStyle = options.overlay;
ctx.fill();
}
my point is that why u draw a rectrangle using the img'width to make it a squre?
The text was updated successfully, but these errors were encountered:
hi, i wanna know why the code below is like this:
if(options.overlay != false) {
ctx.beginPath();
ctx.rect(0, 0, tempImg.width, tempImg.width);
ctx.fillStyle = options.overlay;
ctx.fill();
}
my point is that why u draw a rectrangle using the img'width to make it a squre?
The text was updated successfully, but these errors were encountered: