-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathp5cheat.html
72 lines (69 loc) · 2.45 KB
/
p5cheat.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<title>Code 2 | References</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="style.css" />
<!-- import the webpage's javascript file -->
<script src="/script.js" defer></script>
</head>
<body>
<div class="nav">
<h1>Code 2</h1>
<ul>
<li>
<a
href="https://docs.google.com/document/d/16yNNHgZIqe3B8W9TLSEBrOSo2KsAF5qVFqkZ8sEh2mc/edit?usp=sharing"
target="blank"
>Syllabus</a
>
</li>
<li>
Projects <a href="p1.html">#1</a> <a href="p2.html">#2</a>
<a href="p3.html">#3</a> <a href="p4.html">#4</a> #5
</li>
<li><a href="events.html">Public Events</a></li>
<li><a href="readings.html">References</a></li>
<li><a href="people.html">People</a></li>
</ul>
</div>
<div class="content">
<h1>
p5 Advanced Cheat Sheet
</h1>
<h2>
Array
</h2>
<h3>
Creating an Array
</h3>
<script src="https://gist.github.com/xinemata/0b30c2038eb897c9ef175ca4c2650532.js"></script>
<h3>
Loading an Item from the Array
</h3>
<script src="https://gist.github.com/xinemata/7ba582a9ee4eee6ef0d568e5bea693d1.js"></script>
<h3>
Loading Items from the Array with a for Loop
</h3>
<script src="https://gist.github.com/xinemata/28ebe0b8aba4026442e29f3879bc2eb7.js"></script>
<h3>Creating an Empty Array</h3>
<script src="https://gist.github.com/xinemata/f619fd08982207071e29745b56c789d9.js"></script>
<h3>Assigning Individual Items to the Empty Array</h3>
<script src="https://gist.github.com/xinemata/3c8d10fb3418236df11dd1f637266d6f.js"></script>
<h2>
Class & Object
</h2>
<h3>Creating a Class and a Object</h3>
<script src="https://gist.github.com/xinemata/1559c5091c71e061e17310db5726353b.js"></script>
<h3>Passing Parameters onto the Objects</h3>
<script src="https://gist.github.com/xinemata/0d7062e89c0733f51d6b5290ffb22982.js"></script>
<h2>
Array of Objects
</h2>
<script src="https://gist.github.com/xinemata/98417bb751d7045d443e89353ca9186d.js"></script>
</div>
</body>
</html>