Re: [Tuxpaint-devel] Polygon fill messing with other tools drawing
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2024-06-02 03:39:02
|
On Sat, Jun 01, 2024 at 03:48:09PM +0200, Pere Pujal i Carabantes wrote: <snip> > Better :) > Could be improved if a click in the starting point closes the polygon, > as it is now you have to click outside the starting point and drag into it, > the following works for me. Thanks! For safety, I made the two arrays larger by one, since the last thing that happens is one _more_ point is created, which has the same position as the first point (index 0). So if I were to add a new point at MAX_PTS index into the array, that would go beyond its capacity, otherwise. I also bumped the number of points up to 100. (I did that last night but forgot to commit. Zzzz) <snip> > Works fine as far as I've tested :), the only improvement I could imagine > is to use the first Undo just to clear the auxiliary stuff, > withouth undoing previous work, other Undo acting as of now. I think I understand what you mean. I need to play with it more to make sure, and then I'll see what I can do. At this point, I'm glad that it seems to be working _at all_, though... so any further improvements are just a bonus, IMO. :-D > 2am, why this doesn't surprises me? XDD It's the only time I get to really hack on Tux Paint these days. Maybe once I retire, I can stop being an open source vampire. ;) -bill! |