mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 10:21:27 +00:00
disable image smoothing
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user