On 1 Dec 2024, at 10:45, Bruce Horrocks
wrote: On 1 Dec 2024, at 09:51, Wolfgang Schuster
wrote: While I can get the desired result which a filled path I'm looking for a solution where I have to set fewer control points.
Draw the paths two grid squares sorter and at each end draw a “dot” which is a triangle of the right direction and shading?
s/sorter/shorter/
So your first line
draw (1,7) -- (7,7) ;
becomes
triangle_dot_bottom_right_fill (1,7) ; draw (2,6) ; triangle_dot_bottom_left_fill (7,7) ;
triangle_dot_bottom_right_fill (1,7) ; draw (2,7) -- (6,7) ; triangle_dot_bottom_left_fill (7,7) ; <sigh> Sorry, brain not in gear
If there are load of them then it might be easier to write a macro to walk the (1,7) — (7,7) path and insert “dots” at the changes of direction.
Regards,
— Bruce Horrocks Hampshire, UK