Changes for version 5.00
- Major version update.
- So many things have been added and optimized, that it warrants a full version number upgrade.
- 'replace_color' is VERY fast if clipping is reset (off)
- 'pie_arc' has been changed. It uses the same fill routine that the polygon fill uses. Thus it draws a lot faster with no more gaps. Granularity is not as important. The value of 0.01 for granularity should work for most uses (unless you have a 4K screen).
- 'fill' Is a lot faster, and uses considerably less memory now. I knew I'd get it down.
- New 'monochrome' method that takes any image data and makes it greyscale. Using it with the blit methods should be handy.
- TrueType font rendering is improved. It has a default font setting, which you can change when you instantiate the framebuffer. It also takes a new parameter 'wscale' to scale the width of the text. It takes decimal values between 1 (inclusive) to 0 (exclusive). 1 is normal, and smaller values squeeze the text.
- Color conversions are a bit better for 16 bit framebuffers.
- Added 'cubic_bezier' curves! Yes, you can be a spline master now.
- More friendlier named methods that are aliases to others.
- Due to the extra features, two more prerequisite modules are required.
- On that note, I removed the need for Switch.pm. It turns out it's flakey and starts to give bizarre errors, not to mention I realized it has a performance penalty. So yes, this module is a little bit faster now as a result.
- Boxes can have rounded corners in frame, filled, and gradient filled modes, if you desire. Just add the parameter 'radius' to the method call.
- Polygons with rounded corners are not ready. I am still having trouble with them, but they will be added eventually.
- This new version comes with a splash screen, which can be turned off.
- The scripts in the 'examples' directory have been updated to reflect the new additions. They should be very helpful in getting you started.
- Please read the manual for info on the new additions.
Modules
A Simple Framebuffer Graphics Library