forked from andrea/exercises
Adding w2.2
This commit is contained in:
16
w2_2_p5js/index.html
Normal file
16
w2_2_p5js/index.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/p5.js/2.0.5/p5.min.js'
|
||||
integrity='sha512-jOTg6ikYiHx1LvbSOucnvZi4shXbaovZ91+rfViIiUFLgAJK+k1oQtGEaLvDB8rsZwEfUksTgmhrxdvEDykuzQ=='
|
||||
crossorigin='anonymous'></script>
|
||||
|
||||
<meta charset="utf-8" />
|
||||
</head>
|
||||
|
||||
<script defer src="sketch.js"></script>
|
||||
|
||||
<body></body>
|
||||
|
||||
</html>
|
||||
9
w2_2_p5js/sketch.js
Normal file
9
w2_2_p5js/sketch.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// Single-sketch example
|
||||
|
||||
function setup() {
|
||||
createCanvas(800, 600);
|
||||
}
|
||||
|
||||
function draw() {
|
||||
background(120);
|
||||
}
|
||||
Reference in New Issue
Block a user