@polytrope/

tree-machine-starter

HTML, CSS, JS

Let's get you started making some trees with p5

fork
loading
Files
  • index.html

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.27315792531256355","path":"index.html","file":{"path":"index.html","content":{"asEncoding":{"base64":"PGh0bWw+CjxoZWFkPgo8dGl0bGU+VHJlZSBNYWNoaW5lPC90aXRsZT4KPC9oZWFkPgoKPCEtLSBJbXBvcnQgcDUgLS0+CjxzY3JpcHQgc3JjPSJodHRwczovL2NkbmpzLmNsb3VkZmxhcmUuY29tL2FqYXgvbGlicy9wNS5qcy8wLjcuMy9wNS5taW4uanMiPjwvc2NyaXB0PgoKPHNjcmlwdD4KCmZ1bmN0aW9uIHNldHVwKCkgewogIC8vIFN0YXJ0IG9mZiBieSBjcmVhdGluZyBhIGNhbnZhcyB0byBkcmF3IG9uCiAgY3JlYXRlQ2FudmFzKDQwMCwgNDAwKTsKfQoKZnVuY3Rpb24gZHJhdygpIHsKICAvLyBEcmF3IGEgYmxhY2sgYmFja2dyb3VuZAoJYmFja2dyb3VuZCgwKTsKfQoKPC9zY3JpcHQ+CjwvaHRtbD4="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
<title>Tree Machine</title>
</head>

<!-- Import p5 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.min.js"></script>

<script>

function setup() {
  // Start off by creating a canvas to draw on
  createCanvas(400, 400);
}

function draw() {
  // Draw a black background
	background(0);
}

</script>
</html>
result
console