Create a bounds rectangle resource.
The width of the bounds area
The height of the bounds area
Optional
The left edge x coordinate (default: 0)
The top edge y coordinate (default: 0)
Bounds rectangle suitable for use as a resource
ECSpresso.create() .withResource('bounds', createBounds(800, 600)) .build(); Copy
ECSpresso.create() .withResource('bounds', createBounds(800, 600)) .build();
Create a bounds rectangle resource.