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.
![](/media/32759/110_untitled_4_0.png)
-- 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.
![](/media/32759/segfill_0.gif)
release note
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bbs/files/32759/comovic.gif)
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...
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bbs/files/32759/comovic.gif)
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.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](https://www.lexaloffle.com/bbs/files/32759/comovic.gif)
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]