Options to be applied to this disc object.
Position of the disc object.
new Vec2()
The intensity of the light penetration in objects.
0.8
Size of the disc object.
20
Fill context with the shadows projected by the disc 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 disc.
The point to be checked.
true
if the disc object contains the given point.
A circular, opaque object.