Skip to content

Instantly share code, notes, and snippets.

@bulbil
Last active March 1, 2018 05:43
Show Gist options
  • Select an option

  • Save bulbil/eb25df6cbcf856436b4946a5c0eb7f7c to your computer and use it in GitHub Desktop.

Select an option

Save bulbil/eb25df6cbcf856436b4946a5c0eb7f7c to your computer and use it in GitHub Desktop.
<!--
⁽⁽◝(๑꒪່౪̮꒪່๑)◜⁾⁾≡₍₍◞(๑꒪່౪̮꒪່๑)◟₎₎
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