File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ function drawCanvas(canvas, ctx) {
35
35
}
36
36
37
37
function resizeCanvas ( canvas , ctx ) {
38
- canvas . width = window . innerWidth ;
39
- canvas . height = window . innerHeight ;
38
+ canvas . width = window . innerWidth + 1 ;
39
+ canvas . height = window . innerHeight + 1 ;
40
40
drawCanvas ( canvas , ctx ) ;
41
41
}
42
42
43
43
function drawLines ( canvas , ctx ) {
44
44
const { currentColorIndex, txtColors } = state ;
45
45
const margin = canvas . height / 20 ;
46
- const stroke = ( canvas . height * canvas . width ) / 400000 ;
46
+ const stroke = 3 ;
47
47
48
48
ctx . fillStyle = `rgba(${ txtColors [ currentColorIndex ] . join ( ", " ) } , 1)` ;
49
49
@@ -107,7 +107,6 @@ function main() {
107
107
108
108
font . load ( ) . then ( ( loaded ) => {
109
109
document . fonts . add ( loaded ) ;
110
- drawCanvas ( canvas , ctx ) ;
111
110
resizeCanvas ( canvas , ctx ) ;
112
111
fadeCanvas ( canvas , ctx ) ;
113
112
You can’t perform that action at this time.
0 commit comments