Initialize Rect object.
Width in pixels.
Height in pixels.
Style options.
The opacity of the entity (from 0 to 1)
An array of child entities for recursive update/render.
Whether or not the entity is dead.
Height of the rectangle in pixels.
Position of the rectangle.
Scale of the entity.
Style options for the rectangle.
Whether or not the entity is visible.
Width of the rectangle in pixels.
Whether or not there are any child entities.
Add and return a child object.
Object to add to the container.
Remove and return a child object.
Object to remove from the container.
Empty implementation from extending Entity.
Not used.
Not used.
Creates a rectangle for rendering.
const testObj = new Rect(32, 32, { fill: '#f00' })