Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <center>
- <canvas id="myCanvas" left="2240" width="2240" height="1220" style="border:22px solid grea;">
- Your browser does not support the HTML5 canvas tag.</canvas>
- <script>
- var c = document.getElementById("myCanvas");
- var ctx = c.getContext("2d");
- ctx.shadowBlur = 20;
- ctx.fillStyle = "red";
- ctx.shadowColor = "blue";
- ctx.shadowColor = "blue";
- //ctx.fillRect(Math.random()*50, Math.random()*20, Math.random)*500, Math.random()*1000));
- </script>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
- <script>
- $(document).mousemove(function(e){
- $('p').css("font-size", "10px");
- $('p').css("color", "red");
- $("canvas").slideToggle(Math.random()*3000);
- ctx.fillRect(Math.random()*1000, Math.random()*1000, Math.random()*100, 80);
- });
- </script>
- </head>
- <body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment