Skip to content

Instantly share code, notes, and snippets.

@bulbil bulbil/lorem.html
Last active Mar 1, 2018

Embed
What would you like to do?
<!--
⁽⁽◝(๑꒪່౪̮꒪່๑)◜⁾⁾≡₍₍◞(๑꒪່౪̮꒪່๑)◟₎₎
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
You can’t perform that action at this time.