draw
Draws the error overlay on the canvas.
The overlay covers the entire view with semi-transparent gray, and displays an error message box centered at the view center (screen center).
Parameters
canvas
The canvas to draw on
view Width
The view width in pixels
view Height
The view height in pixels