08-12-2023, 03:30 PM
(08-12-2023, 08:33 AM)RhoSigma Wrote: As old Amiga user still until today I can tell your workaround is good for drawing the shape of a polygon.
However, the AREA statements were not to draw a shape but a filled polygon using the "Blitter" (abrev. for "Block image transferer") which was at that time (late 80s) blazingly fast processing upto 80 million pixels per second. So to emulate that you would also need a PSET anywere into the drawn shape and then do a PAINT. I tried that once too, but often had problems that PAINT was leaking over the shape and flooding the whole screen, so I was looking for an alternative.
The alternative I found was this http://alienryderflex.com/polygon_fill/
From the theory and sample described there I created my polygon.bm library which is part of my "Libraries Collection" here https://qb64phoenix.com/forum/showthread.php?tid=1033
Thank-you much!
Yeah, I decided to componentize AREA into the two parts: the shape, the filling.
I just wanted to make sure I fully understood the shape part first before diving into the filling. (Divide and conquer, 'cause trying to process all of it is way too much for this kid.)
Now I feel okay looking into the filling part. Thank-you much for the resource ! I look forward to diving into it.