Update main.js
This commit is contained in:
parent
6a5f16fab2
commit
d747bb37ac
@ -12,7 +12,7 @@ let x = 0;
|
||||
let y = 0;
|
||||
let t =false;
|
||||
let color = "#000000";
|
||||
let bold = 50;
|
||||
let bold = 10;
|
||||
let image = new Image();
|
||||
|
||||
canvas.width = 1920;
|
||||
@ -60,7 +60,6 @@ const end = e => {
|
||||
colorele.addEventListener('change', e => {
|
||||
color = e.target.value;
|
||||
});
|
||||
|
||||
rangele.addEventListener('change', e => {
|
||||
bold = e.target.value;
|
||||
});
|
||||
@ -125,4 +124,4 @@ function fixPosY(posY){
|
||||
}
|
||||
function pain(){
|
||||
ctx.drawImage(image, 0, 0, canvas.width, canvas.height);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user