Line 1: | Line 1: | ||
+ | <!DOCTYPE html> | ||
<html > | <html > | ||
<head> | <head> | ||
Line 4: | Line 5: | ||
<title>Particles - without mouse</title> | <title>Particles - without mouse</title> | ||
<style> | <style> | ||
− | # | + | #myowncanvas{ |
background: white; | background: white; | ||
} | } | ||
Line 17: | Line 18: | ||
<body> | <body> | ||
− | <canvas id=" | + | <canvas id="myowncanvas">This browser doesn't support canvas</canvas> |
<script> | <script> | ||
Line 25: | Line 26: | ||
maxRadius = 20; | maxRadius = 20; | ||
− | var canvas = document.getElementById(" | + | var canvas = document.getElementById("myowncanvas"), |
context, | context, | ||
particles = []; | particles = []; |
Revision as of 16:37, 31 October 2017
<!DOCTYPE html>