Skip to content

Commit e987d6c

Browse files
authored
Merge pull request #7483 from philyawj/main
Documentation Foundation Class: remove dupe example and describe color
2 parents c643b7b + 6a01c32 commit e987d6c

File tree

1 file changed

+4
-44
lines changed

1 file changed

+4
-44
lines changed

src/core/reference.js

+4-44
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@
14281428
* // Assign the frog variable a new Frog object.
14291429
* fifi = new Frog(50, 50, 20);
14301430
*
1431-
* describe('A frog face drawn on a gray background.');
1431+
* describe('A frog face drawn on a blue background.');
14321432
* }
14331433
*
14341434
* function draw() {
@@ -1467,7 +1467,7 @@
14671467
* frog1 = new Frog(25, 50, 10);
14681468
* frog2 = new Frog(75, 50, 20);
14691469
*
1470-
* describe('Two frog faces drawn next to each other on a gray background.');
1470+
* describe('Two frog faces drawn next to each other on a blue background.');
14711471
* }
14721472
*
14731473
* function draw() {
@@ -1510,7 +1510,7 @@
15101510
* // Slow the frame rate.
15111511
* frameRate(1);
15121512
*
1513-
* describe('Two frog faces on a gray background. The frogs hop around randomly.');
1513+
* describe('Two frog faces on a blue background. The frogs hop around randomly.');
15141514
* }
15151515
*
15161516
* function draw() {
@@ -1566,46 +1566,6 @@
15661566
*
15671567
* <div>
15681568
* <code>
1569-
* // Declare two frog variables.
1570-
* let frog1;
1571-
* let frog2;
1572-
*
1573-
* function setup() {
1574-
* createCanvas(100, 100);
1575-
*
1576-
* // Assign the frog variables a new Frog object.
1577-
* frog1 = new Frog(25, 50, 10);
1578-
* frog2 = new Frog(75, 50, 20);
1579-
*
1580-
* describe('Two frog faces drawn next to each other on a gray background.');
1581-
* }
1582-
*
1583-
* function draw() {
1584-
* background('cornflowerblue');
1585-
*
1586-
* // Show the frogs.
1587-
* frog1.show();
1588-
* frog2.show();
1589-
* }
1590-
*
1591-
* class Frog {
1592-
* constructor(x, y, size) {
1593-
* this.x = x;
1594-
* this.y = y;
1595-
* this.size = size;
1596-
* }
1597-
*
1598-
* show() {
1599-
* textAlign(CENTER, CENTER);
1600-
* textSize(this.size);
1601-
* text('🐸', this.x, this.y);
1602-
* }
1603-
* }
1604-
* </code>
1605-
* </div>
1606-
*
1607-
* <div>
1608-
* <code>
16091569
* // Create an array that will hold frogs.
16101570
* let frogs = [];
16111571
*
@@ -1630,7 +1590,7 @@
16301590
* frameRate(1);
16311591
*
16321592
* describe(
1633-
* 'Five frog faces on a gray background. The frogs hop around randomly.'
1593+
* 'Five frog faces on a blue background. The frogs hop around randomly.'
16341594
* );
16351595
* }
16361596
*

0 commit comments

Comments
 (0)