Andrew Sherman - a@ndr.ooo
What is the web made of?
p5 can be all of these!
<script>
let x = 0;
function draw() {
document.getElementById('square').setAttribute('x', x);
x += 1;
}
</script>
<head>
<script src="https://cdn.jsdelivr.net/npm/p5@latest/lib/p5.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5.html@latest/dist/p5.html.min.js"></script>
</head>
<body>
</body>
Build up, poke, prod, rearrange
Quick changes, quick feedback
You don't need to use p5.html!
(But I hope you'll try it out)
class Brick {
draw() {}
attach(brick) {}
}
class SquareBrick extends Brick {}
class TreeBrick extends Brick {}
class Minifig extends Brick {
head; torso; legs;
}