Create pixelResizeTool.js
This commit is contained in:
parent
efd153c415
commit
45d7aa910d
|
|
@ -0,0 +1,9 @@
|
|||
pixelResizeButton = document.createElement("button");
|
||||
pixelResizeButton.onclick = function(pixel) {
|
||||
let canvas_width = document.getElementById("game").width;
|
||||
let canvas_height = document.getElementById("game").height;
|
||||
let pixelSizeNeeded = prompt("how big of pixels you want");
|
||||
resizeCanvas(canvas_height,canvas_width, pixelSizeNeeded, true);
|
||||
};
|
||||
pixelResizeButton.textContent = "resize pixels";
|
||||
document.getElementById("toolControls").appendChild(pixelResizeButton);
|
||||
Loading…
Reference in New Issue