diff --git a/src/typography/loading_displaying.js b/src/typography/loading_displaying.js index 878818b87b..ac4e32cd9b 100644 --- a/src/typography/loading_displaying.js +++ b/src/typography/loading_displaying.js @@ -226,6 +226,17 @@ p5.prototype.loadFont = function(path, onSuccess, onError) { * *
+ * background('skyblue');
+ * textSize(100);
+ * // Emoji.
+ * text('🌈', 0, 100);
+ *
+ * describe('A rainbow in a blue sky.');
+ *
+ *
* textSize(32);
* fill(255);
* stroke(0);
@@ -325,7 +336,7 @@ p5.prototype.text = function(str, x, y, maxWidth, maxHeight) {
*
* textFont('Courier New');
* textSize(24);
- * text('hi', 40, 55);
+ * text('hi', 35, 55);
*
* describe('The text "hi" written in a black, monospace font on a gray background.');
*
@@ -336,9 +347,10 @@ p5.prototype.text = function(str, x, y, maxWidth, maxHeight) {
* background('black');
* fill('palegreen');
* textFont('Courier New', 10);
- * text('Wake up, Neo...', 6, 52);
+ * text('You turn to the left and see a door. Do you enter?', 5, 5, 90, 90);
+ * text('>', 5, 70);
*
- * describe('The text "Wake up, Neo..." written in a green, monospace font on a black background.');
+ * describe('A text prompt from a game is written in a green, monospace font on a black background.');
*
*