@@ -27,6 +27,7 @@ import * as constants from '../core/constants';
27
27
* // with width 50 and height 50
28
28
* function setup() {
29
29
* createCanvas(100, 100, WEBGL);
30
+ * describe('a white plane with black wireframe lines');
30
31
* }
31
32
*
32
33
* function draw() {
@@ -112,6 +113,7 @@ p5.prototype.plane = function(width, height, detailX, detailY) {
112
113
* // with width, height and depth of 50
113
114
* function setup() {
114
115
* createCanvas(100, 100, WEBGL);
116
+ * describe('a white box rotating in 3D space');
115
117
* }
116
118
*
117
119
* function draw() {
@@ -231,6 +233,7 @@ p5.prototype.box = function(width, height, depth, detailX, detailY) {
231
233
* // draw a sphere with radius 40
232
234
* function setup() {
233
235
* createCanvas(100, 100, WEBGL);
236
+ * describe('a white sphere with black wireframe lines');
234
237
* }
235
238
*
236
239
* function draw() {
@@ -250,6 +253,9 @@ p5.prototype.box = function(width, height, depth, detailX, detailY) {
250
253
* detailX = createSlider(3, 24, 3);
251
254
* detailX.position(10, height + 5);
252
255
* detailX.style('width', '80px');
256
+ * describe(
257
+ * 'a white sphere with low detail on the x-axis, including a slider to adjust detailX'
258
+ * );
253
259
* }
254
260
*
255
261
* function draw() {
@@ -270,6 +276,9 @@ p5.prototype.box = function(width, height, depth, detailX, detailY) {
270
276
* detailY = createSlider(3, 16, 3);
271
277
* detailY.position(10, height + 5);
272
278
* detailY.style('width', '80px');
279
+ * describe(
280
+ * 'a white sphere with low detail on the y-axis, including a slider to adjust detailY'
281
+ * );
273
282
* }
274
283
*
275
284
* function draw() {
@@ -441,6 +450,7 @@ const _truncatedCone = function(
441
450
* // with radius 20 and height 50
442
451
* function setup() {
443
452
* createCanvas(100, 100, WEBGL);
453
+ * describe('a rotating white cylinder');
444
454
* }
445
455
*
446
456
* function draw() {
@@ -462,6 +472,9 @@ const _truncatedCone = function(
462
472
* detailX = createSlider(3, 24, 3);
463
473
* detailX.position(10, height + 5);
464
474
* detailX.style('width', '80px');
475
+ * describe(
476
+ * 'a rotating white cylinder with limited X detail, with a slider that adjusts detailX'
477
+ * );
465
478
* }
466
479
*
467
480
* function draw() {
@@ -482,6 +495,9 @@ const _truncatedCone = function(
482
495
* detailY = createSlider(1, 16, 1);
483
496
* detailY.position(10, height + 5);
484
497
* detailY.style('width', '80px');
498
+ * describe(
499
+ * 'a rotating white cylinder with limited Y detail, with a slider that adjusts detailY'
500
+ * );
485
501
* }
486
502
*
487
503
* function draw() {
@@ -576,6 +592,7 @@ p5.prototype.cylinder = function(
576
592
* // with radius 40 and height 70
577
593
* function setup() {
578
594
* createCanvas(100, 100, WEBGL);
595
+ * describe('a rotating white cone');
579
596
* }
580
597
*
581
598
* function draw() {
@@ -597,6 +614,9 @@ p5.prototype.cylinder = function(
597
614
* detailX = createSlider(3, 16, 3);
598
615
* detailX.position(10, height + 5);
599
616
* detailX.style('width', '80px');
617
+ * describe(
618
+ * 'a rotating white cone with limited X detail, with a slider that adjusts detailX'
619
+ * );
600
620
* }
601
621
*
602
622
* function draw() {
@@ -617,6 +637,9 @@ p5.prototype.cylinder = function(
617
637
* detailY = createSlider(3, 16, 3);
618
638
* detailY.position(10, height + 5);
619
639
* detailY.style('width', '80px');
640
+ * describe(
641
+ * 'a rotating white cone with limited Y detail, with a slider that adjusts detailY'
642
+ * );
620
643
* }
621
644
*
622
645
* function draw() {
@@ -692,6 +715,7 @@ p5.prototype.cone = function(radius, height, detailX, detailY, cap) {
692
715
* // with radius 30, 40 and 40.
693
716
* function setup() {
694
717
* createCanvas(100, 100, WEBGL);
718
+ * describe('a white 3d ellipsoid');
695
719
* }
696
720
*
697
721
* function draw() {
@@ -711,6 +735,9 @@ p5.prototype.cone = function(radius, height, detailX, detailY, cap) {
711
735
* detailX = createSlider(2, 24, 12);
712
736
* detailX.position(10, height + 5);
713
737
* detailX.style('width', '80px');
738
+ * describe(
739
+ * 'a rotating white ellipsoid with limited X detail, with a slider that adjusts detailX'
740
+ * );
714
741
* }
715
742
*
716
743
* function draw() {
@@ -731,6 +758,9 @@ p5.prototype.cone = function(radius, height, detailX, detailY, cap) {
731
758
* detailY = createSlider(2, 24, 6);
732
759
* detailY.position(10, height + 5);
733
760
* detailY.style('width', '80px');
761
+ * describe(
762
+ * 'a rotating white ellipsoid with limited Y detail, with a slider that adjusts detailY'
763
+ * );
734
764
* }
735
765
*
736
766
* function draw() {
@@ -826,6 +856,7 @@ p5.prototype.ellipsoid = function(radiusX, radiusY, radiusZ, detailX, detailY) {
826
856
* // with ring radius 30 and tube radius 15
827
857
* function setup() {
828
858
* createCanvas(100, 100, WEBGL);
859
+ * describe('a rotating white torus');
829
860
* }
830
861
*
831
862
* function draw() {
@@ -847,6 +878,9 @@ p5.prototype.ellipsoid = function(radiusX, radiusY, radiusZ, detailX, detailY) {
847
878
* detailX = createSlider(3, 24, 3);
848
879
* detailX.position(10, height + 5);
849
880
* detailX.style('width', '80px');
881
+ * describe(
882
+ * 'a rotating white torus with limited X detail, with a slider that adjusts detailX'
883
+ * );
850
884
* }
851
885
*
852
886
* function draw() {
@@ -867,6 +901,9 @@ p5.prototype.ellipsoid = function(radiusX, radiusY, radiusZ, detailX, detailY) {
867
901
* detailY = createSlider(3, 16, 3);
868
902
* detailY.position(10, height + 5);
869
903
* detailY.style('width', '80px');
904
+ * describe(
905
+ * 'a rotating white torus with limited Y detail, with a slider that adjusts detailY'
906
+ * );
870
907
* }
871
908
*
872
909
* function draw() {
0 commit comments