You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As part of the massive performance, feature, and structural overhaul needed to propel FastJ into 2.0, we need an incredibly strong and flexible foundation. As such, this issue is opened to describe the many things needed in order to consider the engine ready for a more useful UI system, among other things.
What should the solution be like?
This is the list of features currently expected as a bare minimum in order to proceed:
Perhaps a function or class to set a certain pixel on screen (hopefully will be more performant than drawing a 1x1 rect).
Ability to draw arcs (psdf support and Polygon2D support).
Also is it feasible to add a Polygon2D constructor that takes a Path2D?
Perhaps a function or class to set a certain pixel on screen (hopefully will be more performant than drawing a 1x1 rect).
I can't currently guarantee that this will be very performant, unfortunately, but I think it would be worth a shot.
Ability to draw arcs (psdf support and Polygon2D support).
This is included (but not specified -- my bad!) with the improvements all around for the Polygon2D class and model loading.
Also is it feasible to add a Polygon2D constructor that takes a Path2D?
Totally! I personally might end up making it a static method that reads like so: Polygon2D polygon = Polygon2D.fromPath(path2d);
Hopefully that ends up working out for you.
Also is it feasible to add a Polygon2D constructor that takes a Path2D?
@nt314p Finally got around to doing this one. Still on the fence about working with arcs, points, and lines, but we've got one completely added (see #205)! Hope this helps 👍🏾
Activity
nt314p commentedon Apr 25, 2021
Perhaps a function or class to set a certain pixel on screen (hopefully will be more performant than drawing a 1x1 rect).
Ability to draw arcs (psdf support and Polygon2D support).
Also is it feasible to add a Polygon2D constructor that takes a Path2D?
lucasstarsz commentedon Apr 26, 2021
I can't currently guarantee that this will be very performant, unfortunately, but I think it would be worth a shot.
This is included (but not specified -- my bad!) with the improvements all around for the Polygon2D class and model loading.
Totally! I personally might end up making it a static method that reads like so:
Polygon2D polygon = Polygon2D.fromPath(path2d);Hopefully that ends up working out for you.
(#10) begin working on Paint support for Drawables
(#10) Added support for gradient paints
(#10) fixed issue with gradient array values being null when not spec…
(#10) being working on linear gradient unit tests
(#10) integrate "position" method into linear gradient constructor
(#10) Added unit tests for withColors method
(#10) simplify linear gradient exceptions, finished needed unit tests
(#10) abstracted parameter sanitizing into methods, change RadialGrad…
(#10) add radial gradient unit tests, add missing opens in module-info
(#10) Add unit tests for linear/radial gradient generators
(#10, #3) Added unit tests for random gradients, add constants for mi…
31 remaining items
(#10, #32) Add outline rendering to Polygon2D
(#10, #32) update unit tests, bug fixes
lucasstarsz commentedon Jul 11, 2021
Note: the
drawable-improvementbranch has been replaced with thedrawablebranch.(#10) Added .obj writer (implementation not complete)
(#10) Add .mtl support alongside .obj writing
(#10) Add outline support to .obj export
(#10, #113) Added .obj and .mtl parsing
Merge pull request #117 from fastjengine/images-sprites-animations
(#10, #109) Add curve support to Drawables
(#10, #109) curve path generation, .psdf support
(#10, #109) add support for curves in DrawUtil#lengthOfPath
Merge pull request #204 from lucasstarsz/main
(#10) add creation of Polygon2D from path2d
lucasstarsz commentedon May 9, 2022
@nt314p Finally got around to doing this one. Still on the fence about working with arcs, points, and lines, but we've got one completely added (see #205)! Hope this helps 👍🏾