1
0
mirror of https://github.com/octoleo/plantuml.git synced 2025-01-02 22:50:20 +00:00
PlantUML 2022-03-10 12:49:37 +01:00 committed by GitHub
parent 601620b039
commit df9f6cbfb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,6 +209,8 @@ public class TikzGraphics {
} }
private String definecolor(String name, Color color) { private String definecolor(String name, Color color) {
if (color.getAlpha() == 0)
color = Color.WHITE;
return "\\definecolor{" + name + "}{RGB}{" + color.getRed() + "," + color.getGreen() + "," + color.getBlue() return "\\definecolor{" + name + "}{RGB}{" + color.getRed() + "," + color.getGreen() + "," + color.getBlue()
+ "}"; + "}";
} }