@@ -27,6 +27,7 @@ import * as constants from '../core/constants';
2727 * // with width 50 and height 50
2828 * function setup() {
2929 * createCanvas(100, 100, WEBGL);
30+ * describe('a white plane with black wireframe lines');
3031 * }
3132 *
3233 * function draw() {
@@ -112,6 +113,7 @@ p5.prototype.plane = function(width, height, detailX, detailY) {
112113 * // with width, height and depth of 50
113114 * function setup() {
114115 * createCanvas(100, 100, WEBGL);
116+ * describe('a white box rotating in 3D space');
115117 * }
116118 *
117119 * function draw() {
@@ -231,6 +233,7 @@ p5.prototype.box = function(width, height, depth, detailX, detailY) {
231233 * // draw a sphere with radius 40
232234 * function setup() {
233235 * createCanvas(100, 100, WEBGL);
236+ * describe('a white sphere with black wireframe lines');
234237 * }
235238 *
236239 * function draw() {
@@ -250,6 +253,9 @@ p5.prototype.box = function(width, height, depth, detailX, detailY) {
250253 * detailX = createSlider(3, 24, 3);
251254 * detailX.position(10, height + 5);
252255 * detailX.style('width', '80px');
256+ * describe(
257+ * 'a white sphere with low detail on the x-axis, including a slider to adjust detailX'
258+ * );
253259 * }
254260 *
255261 * function draw() {
@@ -270,6 +276,9 @@ p5.prototype.box = function(width, height, depth, detailX, detailY) {
270276 * detailY = createSlider(3, 16, 3);
271277 * detailY.position(10, height + 5);
272278 * detailY.style('width', '80px');
279+ * describe(
280+ * 'a white sphere with low detail on the y-axis, including a slider to adjust detailY'
281+ * );
273282 * }
274283 *
275284 * function draw() {
@@ -441,6 +450,7 @@ const _truncatedCone = function(
441450 * // with radius 20 and height 50
442451 * function setup() {
443452 * createCanvas(100, 100, WEBGL);
453+ * describe('a rotating white cylinder');
444454 * }
445455 *
446456 * function draw() {
@@ -462,6 +472,9 @@ const _truncatedCone = function(
462472 * detailX = createSlider(3, 24, 3);
463473 * detailX.position(10, height + 5);
464474 * detailX.style('width', '80px');
475+ * describe(
476+ * 'a rotating white cylinder with limited X detail, with a slider that adjusts detailX'
477+ * );
465478 * }
466479 *
467480 * function draw() {
@@ -482,6 +495,9 @@ const _truncatedCone = function(
482495 * detailY = createSlider(1, 16, 1);
483496 * detailY.position(10, height + 5);
484497 * detailY.style('width', '80px');
498+ * describe(
499+ * 'a rotating white cylinder with limited Y detail, with a slider that adjusts detailY'
500+ * );
485501 * }
486502 *
487503 * function draw() {
@@ -576,6 +592,7 @@ p5.prototype.cylinder = function(
576592 * // with radius 40 and height 70
577593 * function setup() {
578594 * createCanvas(100, 100, WEBGL);
595+ * describe('a rotating white cone');
579596 * }
580597 *
581598 * function draw() {
@@ -597,6 +614,9 @@ p5.prototype.cylinder = function(
597614 * detailX = createSlider(3, 16, 3);
598615 * detailX.position(10, height + 5);
599616 * detailX.style('width', '80px');
617+ * describe(
618+ * 'a rotating white cone with limited X detail, with a slider that adjusts detailX'
619+ * );
600620 * }
601621 *
602622 * function draw() {
@@ -617,6 +637,9 @@ p5.prototype.cylinder = function(
617637 * detailY = createSlider(3, 16, 3);
618638 * detailY.position(10, height + 5);
619639 * detailY.style('width', '80px');
640+ * describe(
641+ * 'a rotating white cone with limited Y detail, with a slider that adjusts detailY'
642+ * );
620643 * }
621644 *
622645 * function draw() {
@@ -692,6 +715,7 @@ p5.prototype.cone = function(radius, height, detailX, detailY, cap) {
692715 * // with radius 30, 40 and 40.
693716 * function setup() {
694717 * createCanvas(100, 100, WEBGL);
718+ * describe('a white 3d ellipsoid');
695719 * }
696720 *
697721 * function draw() {
@@ -711,6 +735,9 @@ p5.prototype.cone = function(radius, height, detailX, detailY, cap) {
711735 * detailX = createSlider(2, 24, 12);
712736 * detailX.position(10, height + 5);
713737 * detailX.style('width', '80px');
738+ * describe(
739+ * 'a rotating white ellipsoid with limited X detail, with a slider that adjusts detailX'
740+ * );
714741 * }
715742 *
716743 * function draw() {
@@ -731,6 +758,9 @@ p5.prototype.cone = function(radius, height, detailX, detailY, cap) {
731758 * detailY = createSlider(2, 24, 6);
732759 * detailY.position(10, height + 5);
733760 * detailY.style('width', '80px');
761+ * describe(
762+ * 'a rotating white ellipsoid with limited Y detail, with a slider that adjusts detailY'
763+ * );
734764 * }
735765 *
736766 * function draw() {
@@ -826,6 +856,7 @@ p5.prototype.ellipsoid = function(radiusX, radiusY, radiusZ, detailX, detailY) {
826856 * // with ring radius 30 and tube radius 15
827857 * function setup() {
828858 * createCanvas(100, 100, WEBGL);
859+ * describe('a rotating white torus');
829860 * }
830861 *
831862 * function draw() {
@@ -847,6 +878,9 @@ p5.prototype.ellipsoid = function(radiusX, radiusY, radiusZ, detailX, detailY) {
847878 * detailX = createSlider(3, 24, 3);
848879 * detailX.position(10, height + 5);
849880 * detailX.style('width', '80px');
881+ * describe(
882+ * 'a rotating white torus with limited X detail, with a slider that adjusts detailX'
883+ * );
850884 * }
851885 *
852886 * function draw() {
@@ -867,6 +901,9 @@ p5.prototype.ellipsoid = function(radiusX, radiusY, radiusZ, detailX, detailY) {
867901 * detailY = createSlider(3, 16, 3);
868902 * detailY.position(10, height + 5);
869903 * detailY.style('width', '80px');
904+ * describe(
905+ * 'a rotating white torus with limited Y detail, with a slider that adjusts detailY'
906+ * );
870907 * }
871908 *
872909 * function draw() {
0 commit comments