|
75 | 75 | * textSize(16); |
76 | 76 | * |
77 | 77 | * // Create the message variable. |
78 | | - * let message = 'hello, 🌍'; |
| 78 | + * let message = 'Hello, 🌍!'; |
79 | 79 | * |
80 | 80 | * // Display the message. |
81 | 81 | * text(message, 50, 50); |
82 | 82 | * |
83 | | - * describe('The text "hello, 🌍" written at the center of a gray square.'); |
| 83 | + * describe('The text "Hello, 🌍!" written on a gray background.'); |
84 | 84 | * } |
85 | 85 | * </code> |
86 | 86 | * </div> |
|
92 | 92 | * function setup() { |
93 | 93 | * createCanvas(100, 100); |
94 | 94 | * |
95 | | - * describe('A white circle moves from left to right on a gray square.'); |
| 95 | + * describe('A white circle moves from left to right against a gray background.'); |
96 | 96 | * } |
97 | 97 | * |
98 | 98 | * function draw() { |
|
225 | 225 | * createCanvas(100, 100); |
226 | 226 | * |
227 | 227 | * describe( |
228 | | - * 'A gray square. A white circle follows the mouse user clicks on the canvas.' |
| 228 | + * 'A white circle on a gray background. The circle follows the mouse user clicks on the canvas.' |
229 | 229 | * ); |
230 | 230 | * } |
231 | 231 | * |
|
247 | 247 | * createCanvas(100, 100); |
248 | 248 | * |
249 | 249 | * describe( |
250 | | - * 'A gray square with a white ellipse at its center. The ellipse becomes a circle when the user presses the mouse.' |
| 250 | + * 'A white ellipse on a gray background. The ellipse becomes a circle when the user presses the mouse.' |
251 | 251 | * ); |
252 | 252 | * } |
253 | 253 | * |
|
413 | 413 | * function setup() { |
414 | 414 | * createCanvas(100, 100); |
415 | 415 | * |
416 | | - * describe('A gray square with a flower at its center.'); |
| 416 | + * describe('A pink flower on a gray background.'); |
417 | 417 | * } |
418 | 418 | * |
419 | 419 | * function draw() { |
|
441 | 441 | * function setup() { |
442 | 442 | * createCanvas(100, 100); |
443 | 443 | * |
444 | | - * describe('A gray square with a flower at its center.'); |
| 444 | + * describe('A pink flower on a gray background.'); |
445 | 445 | * } |
446 | 446 | * |
447 | 447 | * function draw() { |
|
473 | 473 | * function setup() { |
474 | 474 | * createCanvas(100, 100); |
475 | 475 | * |
476 | | - * describe('A gray square with the message 'hello, 🌍' at its center.'); |
| 476 | + * describe('The message "Hello, 🌍!" written on a gray background.'); |
477 | 477 | * } |
478 | 478 | * |
479 | 479 | * function draw() { |
|
492 | 492 | * |
493 | 493 | * // Return a string with a personalized greeting. |
494 | 494 | * function createGreeting(name) { |
495 | | - * let message = `hello, ${name}`; |
| 495 | + * let message = `Hello, ${name}!`; |
496 | 496 | * return message; |
497 | 497 | * } |
498 | 498 | * </code> |
|
714 | 714 | * |
715 | 715 | * <code> |
716 | 716 | * // Use a string literal. |
717 | | - * text('hello!', 10, 10); |
| 717 | + * text('Hello!', 10, 10); |
718 | 718 | * </code> |
719 | 719 | * |
720 | 720 | * <code> |
721 | 721 | * // Create a string variable. |
722 | | - * let message = 'hello!'; |
| 722 | + * let message = 'Hello!'; |
723 | 723 | * |
724 | 724 | * // Use the string variable. |
725 | 725 | * text(message, 10, 10); |
|
803 | 803 | * |
804 | 804 | * text(poem, 10, 10); |
805 | 805 | * </code> |
806 | | - * |
| 806 | + * |
807 | 807 | * @property String |
808 | 808 | * |
809 | 809 | * @example |
|
819 | 819 | * textSize(20); |
820 | 820 | * |
821 | 821 | * // Display a welcome message. |
822 | | - * text('hello!', 50, 50); |
| 822 | + * text('Hello!', 50, 50); |
823 | 823 | * |
824 | | - * describe('A gray square with the text "hello!" written at the center.'); |
| 824 | + * describe('The text "Hello!" written on a gray background.'); |
825 | 825 | * } |
826 | 826 | * </code> |
827 | 827 | * </div> |
|
841 | 841 | * let world = '🌍'; |
842 | 842 | * |
843 | 843 | * // Display a welcome message using a template string. |
844 | | - * text(`hello! ${world}`, 50, 50); |
| 844 | + * text(`Hello, ${world}!`, 50, 50); |
845 | 845 | * |
846 | | - * describe('A gray square with the text "hello! 🌍" written at the center.'); |
| 846 | + * describe('The text "Hello, 🌍!" written on a gray background.'); |
847 | 847 | * } |
848 | 848 | * </code> |
849 | 849 | * </div> |
|
973 | 973 | * // Draw a smaller circle at the center. |
974 | 974 | * circle(width / 2, height / 2, 30); |
975 | 975 | * |
976 | | - * describe('A gray square with two concentric white circles drawn at its center.'); |
| 976 | + * describe('Two concentric, white circles drawn on a gray background.'); |
977 | 977 | * } |
978 | 978 | * </code> |
979 | 979 | * </div> |
|
1071 | 1071 | * function setup() { |
1072 | 1072 | * createCanvas(100, 100); |
1073 | 1073 | * |
1074 | | - * describe('A gray square with a white circle drawn at its center.'); |
| 1074 | + * describe('A white circle on a gray background.'); |
1075 | 1075 | * } |
1076 | 1076 | * |
1077 | 1077 | * function draw() { |
|
1093 | 1093 | * function setup() { |
1094 | 1094 | * createCanvas(100, 100); |
1095 | 1095 | * |
1096 | | - * describe('A gray square with a pink circle drawn at its center.'); |
| 1096 | + * describe('A pink circle on a gray background.'); |
1097 | 1097 | * } |
1098 | 1098 | * |
1099 | 1099 | * function draw() { |
|
1116 | 1116 | * function setup() { |
1117 | 1117 | * createCanvas(100, 100); |
1118 | 1118 | * |
1119 | | - * describe('A gray square with a white circle drawn at its center.'); |
| 1119 | + * describe('A white circle on a gray background.'); |
1120 | 1120 | * } |
1121 | 1121 | * |
1122 | 1122 | * function draw() { |
|
1303 | 1303 | * } |
1304 | 1304 | * |
1305 | 1305 | * describe( |
1306 | | - * 'A gray square with four white circles drawn in a horizontal line. The circles move randomly.' |
| 1306 | + * 'Four white circles in a horizontal line on a gray background. The circles move randomly.' |
1307 | 1307 | * ); |
1308 | 1308 | * } |
1309 | 1309 | * |
|
1506 | 1506 | * // Slow the frame rate. |
1507 | 1507 | * frameRate(1); |
1508 | 1508 | * |
1509 | | - * describe('A gray square with two frog faces drawn next to each other. The frogs hop around the screen.'); |
| 1509 | + * describe('Two frog faces on a gray background. The frogs hop around randomly.'); |
1510 | 1510 | * } |
1511 | 1511 | * |
1512 | 1512 | * function draw() { |
|
1626 | 1626 | * frameRate(1); |
1627 | 1627 | * |
1628 | 1628 | * describe( |
1629 | | - * 'A gray square with five frog faces drawn next to each other. The frogs hop around the screen.' |
| 1629 | + * 'Five frog faces on a gray background. The frogs hop around randomly.' |
1630 | 1630 | * ); |
1631 | 1631 | * } |
1632 | 1632 | * |
|
1799 | 1799 | * function setup() { |
1800 | 1800 | * createCanvas(100, 100); |
1801 | 1801 | * |
1802 | | - * describe('A gray square with five black vertical lines.'); |
| 1802 | + * describe('Five black vertical lines on a gray background.'); |
1803 | 1803 | * } |
1804 | 1804 | * |
1805 | 1805 | * function draw() { |
|
1890 | 1890 | * function setup() { |
1891 | 1891 | * createCanvas(100, 100); |
1892 | 1892 | * |
1893 | | - * describe('A gray square with four white circles drawn in a horizontal line.'); |
| 1893 | + * describe('Four white circles drawn in a horizontal line on a gray background.'); |
1894 | 1894 | * } |
1895 | 1895 | * |
1896 | 1896 | * function draw() { |
|
1973 | 1973 | * function setup() { |
1974 | 1974 | * createCanvas(100, 100); |
1975 | 1975 | * |
1976 | | - * describe('A gray square with five black vertical lines.'); |
| 1976 | + * describe('Five black vertical lines on a gray background.'); |
1977 | 1977 | * } |
1978 | 1978 | * |
1979 | 1979 | * function draw() { |
|
2001 | 2001 | * // Slow the frame rate. |
2002 | 2002 | * frameRate(5); |
2003 | 2003 | * |
2004 | | - * describe('A gray square with several concentric circles at the center. The circles' sizes decrease at random increments.'); |
| 2004 | + * describe( |
| 2005 | + * "A gray square with several concentric circles at the center. The circles' sizes decrease at random increments." |
| 2006 | + * ); |
2005 | 2007 | * } |
2006 | 2008 | * |
2007 | 2009 | * function draw() { |
|
0 commit comments