Add Hello Mouse
This sketch draws a bunch of short line segments that move and change color according to their distance and orientation to the mouse cursor.
This commit is contained in:
parent
56e7160ea6
commit
dfb0cad2c4
2 changed files with 149 additions and 0 deletions
26
hello-mouse/index.html
Normal file
26
hello-mouse/index.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>p5.js example</title>
|
||||
<style>
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0 auto;
|
||||
width: 800px;
|
||||
}
|
||||
</style>
|
||||
<script src="../p5.js"></script>
|
||||
<!-- <script src="../addons/p5.sound.js"></script> -->
|
||||
<script src="sketch.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Hello Mouse!</h1>
|
||||
<main>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue