Hi Tomas,
> that line drawing code in fb.tgz/lib.c seems quite complicated.
>
> Here is what I did in forth:
> ...
> (tested), which could be written in C as (not tested):
>
> void line(int x, int y, int x2, int y2) {
You mean this function?
static void _line(int pix, int v, int h, int h2, unsigned z, unsigned z2) {
I think it cannot be directly compared, because it is not really a line
*drawing* function.
Instead, it maintains values in the Z-Buffer for a horizontal line,
comparing and storing depth values in the third dimension.
☺/ A!ex
--
Fridays for Functions: 9:00-17:00 UTC
on Jitsi https://meeting.itship.ch/picolisp
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe