File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
docs/yuidoc-p5-theme/assets/js Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,10 @@ import p5 from '../core/main';
9191 *
9292 * <div>
9393 * <code>
94+ * function setup() {
95+ * createCanvas(100, 100);
96+ * }
97+ *
9498 * function draw() {
9599 * // Add the text description.
96100 * textOutput();
@@ -111,6 +115,10 @@ import p5 from '../core/main';
111115 *
112116 * <div>
113117 * <code>
118+ * function setup() {
119+ * createCanvas(100, 100);
120+ * }
121+ *
114122 * function draw() {
115123 * // Add the text description and
116124 * // display it for debugging.
@@ -235,6 +243,10 @@ p5.prototype.textOutput = function(display) {
235243 *
236244 * <div>
237245 * <code>
246+ * function setup() {
247+ * createCanvas(100, 100);
248+ * }
249+ *
238250 * function draw() {
239251 * // Add the grid description.
240252 * gridOutput();
@@ -255,6 +267,10 @@ p5.prototype.textOutput = function(display) {
255267 *
256268 * <div>
257269 * <code>
270+ * function setup() {
271+ * createCanvas(100, 100);
272+ * }
273+ *
258274 * function draw() {
259275 * // Add the grid description and
260276 * // display it for debugging.
Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ p5.Font = class {
362362 x = xOriginal ;
363363 let line = lines [ i ] ;
364364
365- line = line . replace ( '\t' , ' ' ) ;
365+ line = line . replace ( / \t / g , ' ' ) ;
366366 const glyphs = this . _getGlyphs ( line ) ;
367367
368368 for ( let j = 0 ; j < glyphs . length ; j ++ ) {
You can’t perform that action at this time.
0 commit comments