Feature Overview
SEGFILL()
Fill segment shape.
- The start and end angles are specified from 0 to 1.
- If the difference between the start angle and the end angle is 0.5 or more, it is a semicircle, and if the difference is 1 or more, it is a circle.
- If the start position is higher than the end position, it is replaced.
- This function consumes 314 Token.
-- Draw a half moon segfill(32,24,16,10,0.625,0.5) -- x, y, size(radius), color, start angle, distance |
It may be helpful to understand how it works by executing a COLOR COMMENT OUT line.
release note
I have updated segfill() to v0.2!
- remove extra judgments and variable swapping
- remove noise at distance 0
- Distance 1 or more and 1 or less will make the result the same
update 20240716
I had uploaded a half-assed version...
I have updated segfill() to v0.3!
- Stabilization of the shape of the lower part.
- Substitute line() for short arcs.
- For complete circles, substitute circfill().
I think the shape is physically better than the previous version.
I have updated segfill() to v0.4!
- argument radius and y coordinate are converted to integers.
- when the angle distance was 0, the starting point had rasterization chipping at angles of 0.5 or more.
[Please log in to post a comment]