disable image smoothing

This commit is contained in:
evanpelle
2024-09-16 19:26:18 -07:00
parent b187ddf3f4
commit 149ffaa026
+2 -5
View File
@@ -22,11 +22,8 @@ export class TransformHandler {
handleTransform(context: CanvasRenderingContext2D) {
// Disable image smoothing for pixelated effect
if (this.scale > 3) {
context.imageSmoothingEnabled = false;
} else {
context.imageSmoothingEnabled = true;
}
context.imageSmoothingEnabled = false;
// Apply zoom and pan
context.setTransform(