Flood fill

Here you can talk about anything related to BBC BASIC, not covered in another category
Ric
Posts: 208
Joined: Tue 17 Apr 2018, 21:03

Flood fill

Post by Ric »

Has anyone written a routine to flood fill, if so i would be very interested in borrowing it

kind regards Ric
Kind Regards Ric.

6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
Hated Moron

Re: Flood fill

Post by Hated Moron »

Ric wrote: Sat 10 Dec 2022, 22:45 Has anyone written a routine to flood fill, if so i would be very interested in borrowing it
What do you want to do that the standard flood-fills (PLOT 128 to PLOT 143 inclusive) don't?
Ric
Posts: 208
Joined: Tue 17 Apr 2018, 21:03

Re: Flood fill

Post by Ric »

I would like to run the routine on a 2D array, without outputting to the screen.
Kind Regards Ric.

6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
Hated Moron

Re: Flood fill

Post by Hated Moron »

Ric wrote: Sat 10 Dec 2022, 23:06 I would like to run the routine on a 2D array, without outputting to the screen.
Perhaps you could adapt the QuickFill algorithm that I use in BBCSDL.