screenwrap
A ScreenWrap manipulated the XY of a point, if it travels outside the wrap space.
let topLeft = [50, 50]
, bottomRight = [800, 800]
s = new ScreenWrap(topLeft, bottomRight)
Check and alter point positions as they move in the draw routine:
s.perform(point)
This is setup be default on the stage, saving the setup part and screen resize tracking:
stage.screenWrap.perform(point)
Meta Data
| filepath_exists | True |
| path | screenwrap |
| filepath | screenwrap.js |
| clean_files | () |