arc
A pie wedge: a filled sector of a circle.
arc(x: Val, y: Val, radius: Val, halfAngle: Val): Expr
Import shape from shaders/std and use shape.arc.
radius is the sector's radius, in uv. halfAngle is half the opening angle, in radians. Multiply an aperture prop in degrees by APERTURE_TO_HALF_ANGLE to get it. The wedge opens downward at rotation 0.
Parameters
| Name | Type | Notes |
|---|---|---|
x | Val | |
y | Val | |
radius | Val | |
halfAngle | Val |
Example
shape: {distance: ({x, y}, u) => arc(x, y, u('radius'), math.mul(u('aperture'), APERTURE_TO_HALF_ANGLE)), …}
See also
ring— A ring: a circular band around a centre.circle— A circle of a given radius.APERTURE_TO_HALF_ANGLE— The factor that turns an opening angle in degrees into the half-anglearctakes.