Skip to content

Commit 8cfbbda

Browse files
committed
Add describe() calls
1 parent 68700ca commit 8cfbbda

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/core/p5.Renderer3D.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2038,6 +2038,7 @@ function renderer3D(p5, fn) {
20382038
* instanceData = createStorage(data);
20392039
* instance = buildGeometry(drawInstance);
20402040
* instancesShader = buildMaterialShader(drawInstances);
2041+
* describe('Five spheres at random positions, each a different random color.');
20412042
* }
20422043
*
20432044
* function drawInstance() {
@@ -2092,6 +2093,7 @@ function renderer3D(p5, fn) {
20922093
*
20932094
* gameShader = buildComputeShader(simulate);
20942095
* displayShader = buildFilterShader(display);
2096+
* describe('An animated Game of Life simulation displayed as black and white pixels.');
20952097
* }
20962098
*
20972099
* function simulate() {
@@ -2231,6 +2233,7 @@ function renderer3D(p5, fn) {
22312233
* computeShader = buildComputeShader(simulate);
22322234
* displayShader = buildMaterialShader(display);
22332235
* instance = buildGeometry(drawParticle);
2236+
* describe('100 orange particles shooting outward.');
22342237
* }
22352238
*
22362239
* function makeParticles(x, y) {
@@ -2305,6 +2308,7 @@ function renderer3D(p5, fn) {
23052308
* computeShader = buildComputeShader(simulate);
23062309
* displayShader = buildMaterialShader(display);
23072310
* instance = buildGeometry(drawParticle);
2311+
* describe('50 white spheres bouncing around the canvas.');
23082312
* }
23092313
*
23102314
* function drawParticle() {
@@ -2406,6 +2410,7 @@ function renderer3D(p5, fn) {
24062410
* computeShader = buildComputeShader(simulate);
24072411
* displayShader = buildMaterialShader(display);
24082412
* instance = buildGeometry(drawParticle);
2413+
* describe('50 white spheres bouncing around the canvas.');
24092414
* }
24102415
*
24112416
* function drawParticle() {
@@ -2474,6 +2479,7 @@ function renderer3D(p5, fn) {
24742479
*
24752480
* gameShader = buildComputeShader(simulate);
24762481
* displayShader = buildFilterShader(display);
2482+
* describe('An animated Game of Life simulation displayed as black and white pixels.');
24772483
* }
24782484
*
24792485
* function simulate() {

src/strands/p5.strands.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ if (typeof p5 !== "undefined") {
338338
* createCanvas(200, 200, WEBGL);
339339
* instance = buildGeometry(drawInstance);
340340
* instancesShader = buildMaterialShader(drawSpaced);
341+
* describe('Five red spheres arranged in a horizontal line.');
341342
* }
342343
*
343344
* function drawSpaced() {
@@ -390,6 +391,7 @@ if (typeof p5 !== "undefined") {
390391
* instanceData = createStorage(data);
391392
* instance = buildGeometry(drawInstance);
392393
* instancesShader = buildMaterialShader(drawInstances);
394+
* describe('Five spheres at random positions, each a different random color.');
393395
* }
394396
*
395397
* function drawInstance() {

src/webgpu/p5.RendererWebGPU.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ function rendererWebGPU(p5, fn) {
136136
* computeShader = buildComputeShader(simulate);
137137
* displayShader = buildMaterialShader(display);
138138
* instance = buildGeometry(drawParticle);
139+
* describe('100 orange particles shooting outward.');
139140
* }
140141
*
141142
* function makeParticles(x, y) {

0 commit comments

Comments
 (0)