Function
_textSummary
(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) { |
Tested by
no test coverage detected