Releases: Krassnig/CodeDraw
Releases · Krassnig/CodeDraw
Fix Click
This isn't even my FinalDraw
- Require that the user checks for cd.isClosed() in loops. The program will no longer terminate when closing all CodeDraw instances.
- Fix crashes when closing CodeDraw through the gui while in an endless loop.
- CodeDraw.run(...) now returns normaly when the user closes the window.
- Matrix2D now requires specification whether the arguments are row or column major.
Polyfilled
- Fix bug where fillPolygon would only draw outline
Pixel Perfect
- Fix bug where getPixel crashes on High DPI devices
Redocumentation
- Rewrite the README, INTRODUCTION and INSTALL.
- Create an automatic Event Code Generator https://krassnig.github.io/CodeDrawJavaDoc/EventGenerator/
- Fix cleanup of the Animation interface and improve application cleanup in general
- Include License inside the CodeDraw.jar file
Bits and Pieces
- Changeable corner radius for squares and rectangles
setCornerRadius - Allow fallback font names in
setFontName - Events now have timestamps
getTimeCreated - Events older than than a specified duration can now be cleared from the EventScanner with
removeEventsOlderThan(Duration) - Force minimum amount of arguments in var args methods
drawPolygonandfillPolygon - Compose
Animationinterfaces by callingAnimation.combine(Animation... animations)
Matrix Release
- Add linear transformations through the Matrix2D class and setTransformation()
- All classes are now in a single package
- FullScreen and BorderlessWindow display classes added
- Inversion of control through the Animation interface
- CodeDrawImage is now just Image
- Images can now be transparent
- Added static image editing methods
- Custom shapes can be created by calling drawPathStartingAt(...)
- Add getPixel/setPixel method to Image
- Conversion to AWT Image now through toBufferedImage()
- EventScanner can only be accessed by calling getEventScanner() now
- EventScanner is now Iterable with Event super class of all event classes
- String representations of the Event classes for better debugging
- Remove direct event handling through lambdas
- TextFormat can now chain setters
- Merge HorizontalAlign and VerticalAlign into TextOrigin
Instant Coffee
- Adds InstantDraw mode that immediately displays drawn objects
- Adds always on top option for CodeDraw window
EventScanner
- CodeDraw minimal Java version now 9
- Rework events, Events can now be read with an EventScanner. See examples and documentations for detail!
- Pies and Arcs start at 3 o'clock instead of 12 o'clock and go clockwise
- Fix MouseClick event
- Add interpolation option to image drawing
- Minimum size of CodeDraw canvas is now 1x1 pixel
- More documentation in JavaDoc and INTRODUCTION.md
- Images now wrapped as CodeDrawImage
- Images must now be loaded through static methods in CodeDrawImage.
- Support for multiple lines in drawText (use the '\n' character)
- Improved rendering settings
- CodeDraw cannot be used on the event loop thread
Window Size Fix Part II
- Fixes the window scaling issue as much as possible
- Fixes incorrect CanvasPosition