Options to be applied to the line object.
A vector that is the first point of the line.
new Vec2()
A vector that is the last point of the line.
new Vec2()
The intensity of the light penetration in objects.
0.8
An array of Vec points that define the polygon.
[]
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
An opaque line object