On 30 May 2012, at 22:23, Casey wrote: > So I am trying to replicate my own version of mspaint with fltk. I have two > problems, my first problem is that I am limited to a certain number of > points. My current method is using a predetermined amount of points(line 46: > point points[1000]; ) Is there a better method that just adjusts the amount > of points according to the user's input instead of limiting the number of > points to 1000??? This presents another issue where the color is changing > every point, instead of the current point the user is working on. Any help > wouldbe greatly appreciated! Thanx!
Or you could just look in the links pages for "anti paint" and study that code - that's a pretty good re-implementation of a paint-style pixel pusher, though was done for a quite old version of fltk so I'm not sure whether it will build with current fltk libs or not. Still, worth looking at for the educational value of nothing else. _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk