change canvas id

This commit is contained in:
Asif Bacchus 2020-04-08 04:27:32 -06:00
parent e52855f954
commit 1a519a1d55
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
crossorigin="anonymous"/>
</head>
<body>
<canvas id="canvas1"></canvas>
<canvas id="particles"></canvas>
<!-- javascript -->
<script
src="js/particles.js"

View File

@ -3,7 +3,7 @@
https://youtu.be/d620nV6bp0A
*/
const canvas = document.getElementById('canvas1');
const canvas = document.getElementById('particles');
const canvasContext = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;