Options to be applied to the disc object.
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
forInvoke a function for each of the visible edges in the polygon.
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 of the polygon.
The function to be invoked.
An opaque polygon object