-
Notifications
You must be signed in to change notification settings - Fork 25
Commit 9361f05
Make p5.js target work with standalone P5
P5 functions are available as globals in their web editor but not necessary the case in all P5 environments.
Modify the P5 draw function to make it work in environments where those functions aren't global.1 parent b09bde1 commit 9361f05
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 | - | ||
99 | + | ||
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
| |||
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
108 | - | ||
108 | + | ||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
| |||
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
122 | - | ||
122 | + | ||
123 | 123 |
| |
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
129 | 129 |
| |
130 | - | ||
130 | + | ||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
|
0 commit comments