Last active
March 1, 2018 05:43
-
-
Save bulbil/eb25df6cbcf856436b4946a5c0eb7f7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| ⁽⁽◝(๑꒪່౪̮꒪່๑)◜⁾⁾≡₍₍◞(๑꒪່౪̮꒪່๑)◟₎₎ | |
| EXTRA CREDIT! | |
| if you'd like to explore further disfiguring the site, you might try adding the following script to the bottom of the index.html file - - this snippet of code must appear above the </body> tag | |
| --> | |
| <style type="text/css"> | |
| canvas { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| } | |
| </style> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.js"></script> | |
| <script type="text/javascript"> | |
| function setup(){ | |
| createCanvas(1300,1000); | |
| } | |
| function draw(){ | |
| } | |
| function mouseMoved(){ | |
| var x = [900, 300, 400]; | |
| var y = [0, 950, 500]; | |
| stroke(random(255),random(255),random(255)) | |
| line(random(1300), random(1000), random(x), random(y)); | |
| } | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment