* Draws to the framebuffer by calling a function that contains drawing * instructions. * * The parameter, `callback`, is a function with the drawing instructions * for the framebuffer. For example, calling `myBuffer.draw(myFunction)` * will call a function named `myFunction()` to draw
(callback)
| 960 | * } |
| 961 | */ |
| 962 | draw(callback) { |
| 963 | this.begin(); |
| 964 | callback(); |
| 965 | this.end(); |
| 966 | } |
| 967 | |
| 968 | /** |
| 969 | * Loads the current value of each pixel in the framebuffer into its |
no test coverage detected