(fn, p5, name, value)
| 126 | * are the correct dual mode implementation. |
| 127 | */ |
| 128 | function augmentFn(fn, p5, name, value) { |
| 129 | fn[name] = value; |
| 130 | const GraphicsProto = p5?.Graphics?.prototype; |
| 131 | if (GraphicsProto) { |
| 132 | GraphicsProto[name] = value; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | /* |
| 137 | * Temporarily augment window, p5.prototype (fn), and p5.Graphics.prototype |
no outgoing calls
no test coverage detected