fix: use scale value from input
This commit is contained in:
parent
e9f803d6be
commit
35697b5b7d
1 changed files with 2 additions and 1 deletions
|
@ -7,12 +7,13 @@ addEventListener('DOMContentLoaded', () => {
|
||||||
mask: document.getElementById("mask-expr"),
|
mask: document.getElementById("mask-expr"),
|
||||||
size: document.getElementById("width"),
|
size: document.getElementById("width"),
|
||||||
ver: document.getElementById("version"),
|
ver: document.getElementById("version"),
|
||||||
|
scale: document.getElementById("scale"),
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById("gen-btn").addEventListener("click", () => {
|
document.getElementById("gen-btn").addEventListener("click", () => {
|
||||||
const mask = options.mask.value
|
const mask = options.mask.value
|
||||||
const size = options.size.value
|
const size = options.size.value
|
||||||
const scale = 40
|
const scale = options.scale.value
|
||||||
|
|
||||||
canvas.width = canvas.height = size * scale
|
canvas.width = canvas.height = size * scale
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue