File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -95,10 +95,12 @@ import p5 from '../core/main';
9595 *
9696 * <div>
9797 * <code>
98- * function draw () {
98+ * function setup () {
9999 * // Add the text description.
100100 * textOutput();
101+ * }
101102 *
103+ * function draw() {
102104 * // Draw a moving circle.
103105 * background(200);
104106 * let x = frameCount * 0.1;
@@ -115,11 +117,13 @@ import p5 from '../core/main';
115117 *
116118 * <div>
117119 * <code>
118- * function draw () {
120+ * function setup () {
119121 * // Add the text description and
120122 * // display it for debugging.
121123 * textOutput(LABEL);
124+ * }
122125 *
126+ * function draw() {
123127 * // Draw a moving circle.
124128 * background(200);
125129 * let x = frameCount * 0.1;
@@ -243,10 +247,12 @@ p5.prototype.textOutput = function(display) {
243247 *
244248 * <div>
245249 * <code>
246- * function draw () {
250+ * function setup () {
247251 * // Add the grid description.
248252 * gridOutput();
253+ * }
249254 *
255+ * function draw() {
250256 * // Draw a moving circle.
251257 * background(200);
252258 * let x = frameCount * 0.1;
@@ -263,11 +269,13 @@ p5.prototype.textOutput = function(display) {
263269 *
264270 * <div>
265271 * <code>
266- * function draw () {
272+ * function setup () {
267273 * // Add the grid description and
268274 * // display it for debugging.
269275 * gridOutput(LABEL);
276+ * }
270277 *
278+ * function draw() {
271279 * // Draw a moving circle.
272280 * background(200);
273281 * let x = frameCount * 0.1;
You can’t perform that action at this time.
0 commit comments