fix: use scale value from input

This commit is contained in:
DarkCat09 2024-07-06 11:42:26 +04:00
parent e9f803d6be
commit 35697b5b7d
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -7,12 +7,13 @@ addEventListener('DOMContentLoaded', () => {
mask: document.getElementById("mask-expr"),
size: document.getElementById("width"),
ver: document.getElementById("version"),
scale: document.getElementById("scale"),
}
document.getElementById("gen-btn").addEventListener("click", () => {
const mask = options.mask.value
const size = options.size.value
const scale = 40
const scale = options.scale.value
canvas.width = canvas.height = size * scale