mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Finished empty rectangle tool
This commit is contained in:
@@ -38,6 +38,8 @@ function Layer(width, height, canvas) {
|
||||
//center canvas in window
|
||||
this.canvas.style.left = 64+canvasView.clientWidth/2-(this.canvasSize[0]*zoom/2)+'px';
|
||||
this.canvas.style.top = 48+canvasView.clientHeight/2-(this.canvasSize[1]*zoom/2)+'px';
|
||||
|
||||
this.context.imageSmoothingEnabled = false;
|
||||
},
|
||||
// Resizes canvas
|
||||
this.resize = function() {
|
||||
|
||||
Reference in New Issue
Block a user