|
Post by Gordon Rahman on Dec 2, 2020 8:51:54 GMT -5
I haven't seen this wish here? Can LB5 get a "fill polygon" function?
In LB4 we can use the Windows FLOODFILL function to fill an area. But that function needs you to enter a border color line and draw the polygon after which a starting point for the filling with a background color is needed.
Dan Teel wrote a "fill polygon" function that he calls "polyfill". You just have to give the function more then 2 points (pair of numbers) and a background color to fill the area contained within your numbers with your background color.
Gordon
|
|
|
Post by Carl Gundel on Dec 2, 2020 8:59:20 GMT -5
I haven't seen this wish here? Can LB5 get a "fill polygon" function? In LB4 we can use the Windows FLOODFILL function to fill an area. But that function needs you to enter a border color line and draw the polygon after which a starting point for the filling with a background color is needed. Dan Teel wrote a "fill polygon" function that he calls "polyfill". You just have to give the function more then 2 points (pair of numbers) and a background color to fill the area contained within your numbers with your background color. Gordon Where is Dan's polyfill function?
|
|
|
Post by Rod on Dec 2, 2020 9:50:23 GMT -5
|
|
|
Post by Carl Gundel on Dec 2, 2020 9:56:28 GMT -5
Thanks. I thought you meant it was written as a BASIC function.
|
|