A function that's called when the browser window is resized.
Code placed in the body of windowResized() will run when the browser window's size changes. It's a good place to call resizeCanvas() or make other adjustments to accommodate the new window size.
The event parameter is optional. If added to the function declaration, it can be used for debugging or other purposes.
Examples
Syntax
windowResized([event])
Parameters
event
Event:
optional resize Event.
This page is generated from the comments in src/core/environment.js . Please feel free to edit it and submit a pull request!