Re: [fltk.development] RFC: decision on license to use forfltk/examples source code
Would like to hear from Albrecht, Matt, and Mike on this as well. Greg: Zlib or MIT with exceptions to relax use and not require citations Ian: Zlib, add exception to relax code use Recommendations of other licenses are fine too. I think all we really want people NOT to do is attempt to declare ownership to themselves, then try to leverage others with it, as well as including a limited warranty and liability waiver. As an example of usurping ownership, say someone at Company A uses some of our example code, then he leaves the company. Years later, Company A thinks our examples were taken from their code (due to the similarity) and attempt to take us, or others to task about it. I did some research trying to figure out what license books use for their examples, but couldn't find much. O'Reilly has the following general policy for reuse of code examples from his books, but it's not really a license, it's just a FAQ response from Tim O'Reilly: http://oreilly.com/pub/a/oreilly/ask_tim/2001/codepolicy.html In general, all books have copyright notices at the front, but don't generally discuss the use of example code.. the implication is to of course use them, and people usually reference the source if they want when appropriate, but are certainly not forced. It'd be nice if our example code didn't need paragraphs of license prologue, and could just reference a file (eg. README-License.txt) that comes with the examples. ___ fltk-dev mailing list fltk-dev@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-dev
Re: [fltk.general] Plotting CPU and RAM
On 02/26/13 12:28, Greg Ercolano wrote: http://seriss.com/people/erco/fltk/tmp/alpha-progress-bar.jpg I'll see if I can post the code for that widget.. OK, try this: http://seriss.com/people/erco/fltk/#MultiColorBarGraph Tested on linux.. too tired to test on OSX and Windows, though it should work on those too. Quoting the description: Demonstrate how to use inline representations of alpha channel images to draw nice widgets with antialiased curved lines with simple FLTK drawing techniques. In this case, a multicolored bar graph widget. This shows several things in one example; how to construct a simple shape using an image of fixed color with just the alpha channel to define the shape (in this case a disk, but it could be anything). Also, how to make a 'modern looking widget' using simple image manipulation techniques to get antialiased 'see through' edges. And finally, how to make a multiple bar graph widget with overlapping bars. Our goal is to draw a bar graph that can have multiple overlapping bars, similar to a CPU usage bar that shows separate 'user' and 'system' cpu use in the same bargraph, but using round-ended 'bars' instead of flat rectangles. This is done by taking just the alpha channel of a circle or disk (saved from a paint program, e.g. Gimp), encoding the data as inline code. There are other example widgets that show how to 'nice' looking widgets on the cheat page; one is Fl_Gel_Tabs, and another is Fl_Matte_Button which both use gradients: http://seriss.com/people/erco/fltk/Fl_Gel_Tabs/ http://seriss.com/people/erco/fltk/Fl_Matte_Button/ ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk