MCPcopy Index your code
hub / github.com/processing/p5.js / _textSummary

Function _textSummary

src/accessibility/textOutput.js:54–62  ·  view source on GitHub ↗
(numShapes, background, width, height)

Source from the content-addressed store, hash-verified

52
53 //Builds textOutput summary
54 function _textSummary(numShapes, background, width, height) {
55 let text = `Your output is a, ${width} by ${height} pixels, ${background} canvas containing the following`;
56 if (numShapes === 1) {
57 text = `${text} shape:`;
58 } else {
59 text = `${text} ${numShapes} shapes:`;
60 }
61 return text;
62 }
63
64 //Builds textOutput table with shape details
65 function _shapeDetails(idT, ingredients) {

Callers 1

textOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected