-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#10) Added support for gradient paints
New Additions: - PsdfUtil: - Derivation from DrawUtil for working with `.psdf` files. - Added support for saving `RadialGradient` and `LinearGradient` to a psdf file - Polygon2D -- Changed `color` variable to `paint` to support all types of `Paint` objects. - DrawUtil - Moved psdf content to PsdfUtil - `paintEquals` method for comparing equality between two `Paint` objects. - Changed `randomFont` method to draw font names from the original font set. - Added methods to generate random linear/radial gradients: - `randomLinearGradient` - `randomLinearGradientWithAlpha` - `randomRadialGradient` - `randomRadialGradientWithAlpha` Files Moved: - `tech.fastj.graphics.DisplayUtil.java` → `tech.fastj.graphics.util.DisplayUtil.java` - `tech.fastj.graphics.DrawUtil.java` → `tech.fastj.graphics.util.DrawUtil.java` - `tech.fastj.graphics.util.GradientBuilder.java` → `tech.fastj.graphics.util.gradients.GradientBuilder.java` - `tech.fastj.graphics.util.Gradients.java` → `tech.fastj.graphics.util.gradients.Gradients.java` - `tech.fastj.graphics.util.LinearGradientBuilder.java` → `tech.fastj.graphics.util.gradients.LinearGradientBuilder.java` - `tech.fastj.graphics.util.RadialGradientBuilder.java` → `tech.fastj.graphics.util.gradients.RadialGradientBuilder.java`
- Loading branch information
1 parent
3e44d61
commit ad883ba
Showing
26 changed files
with
662 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...java/tech/fastj/graphics/DisplayUtil.java → ...tech/fastj/graphics/util/DisplayUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.