Thick line drawing routine (as a reply to @JadeLombax Twitter).
Manual:
linefill x0 y0 x1 y1 r [col] draw a 2*r pixel wide line note: r must be >= 0.5 to produce meaningful results note: the code uses sub-pixel precision rasterization, allowing smooth movement |
Example:
-- 4 pixel wide white line linefill(45,34,67,96,2,7) |
P#80095 2020-07-29 16:32 ( Edited 2020-07-29 16:35)


Looks nice, I'll have to try and figure out how it works. You said this is a reply to something from me on Twitter?
P#80109 2020-07-30 01:34


The code is neat, the only "issue" I had is that I can't find a combination of values where the thick line and a circfill can agree on the same size. Besides that, it's perfect.
P#80119 2020-07-30 07:53


That's why I placed "issue" it in quotes :)
I tinkered aground with it a bit, and found something that n should work well for the idea I have in mind.
P#80130 2020-07-30 16:45
[Please log in to post a comment]