Hey! I’m working on a custom drawing system for a public release and somebody suggested a paint bucket. I want to implement this, I just don’t know where to start.
After some research they led me to something called a ‘flood fill algorithm’. I just don’t know if that’s the best way to approach something like this.
I would’ve normally like checked like the grid to fill it in but there’s a catch this time. As I started working on this, I noticed that if the mouse moved too fast Roblox wouldn’t update it and it left noticeable gaps in the drawing. To fix this, I implemented some geometry that fills in the gaps between them leaving a rotated frame that fills in the gaps so that’s probably not gonna make this any easier.
Does anybody have any pointers / posts I didn’t find? Also, I’m literally only in Algebra 1 so if you post some super complicated math as a response you may need to dumb it down.
Yeah, that’s why I recommend you to switch to pixel method, it can fix the gaps. Check if the player is drawing, colorize the pixel when the player is hovering it.