Options to be applied to the rectangle object.
A vector that is the bottom-right of the rectangle.
new Vec2()
The intensity of the light penetration in objects.
0.8
An array of Vec points that define the polygon.
[]
A vector that is the top-left of the rectangle.
new Vec2()
Fill ctx with the shadows projected by the polygon object from the origin point, constrained by the given bounds.
The canvas context onto which the shadows will be cast.
A vector that represents the origin for the casted shadows.
An anonymous object with the properties topLeft and bottomRight.
The property values are Vec2
objects representing the corners of the boundary.
Determine if the given point is inside the polygon.
The point to be checked.
true
if the polygon object contains the given point.
Private
sync
A rectangular, opaque object.