Skip to content

Commit 61159a6

Browse files
authored
Update README.md
1 parent c92ce3b commit 61159a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const matrixRain = new MatrixRain(canvas)
6060
matrixRain.resize(window.innerWidth, window.innerHeight)
6161

6262
window.addEventListener('resize', () => {
63-
background.resize(window.innerWidth, window.innerHeight)
63+
matrixRain.resize(window.innerWidth, window.innerHeight)
6464
})
6565

6666
```
@@ -92,7 +92,7 @@ const matrixRain = new MatrixRain(canvas, {fontColor: gradient})
9292
matrixRain.resize(window.innerWidth, window.innerHeight)
9393

9494
window.addEventListener('resize', () => {
95-
background.resize(window.innerWidth, window.innerHeight)
95+
matrixRain.resize(window.innerWidth, window.innerHeight)
9696
})
9797
```
9898
----

0 commit comments

Comments
 (0)