diff --git a/src/com/jpexs/decompiler/flash/exporters/morphshape/CanvasMorphShapeExporter.java b/src/com/jpexs/decompiler/flash/exporters/morphshape/CanvasMorphShapeExporter.java index d083fe6c7..ec65bcec1 100644 --- a/src/com/jpexs/decompiler/flash/exporters/morphshape/CanvasMorphShapeExporter.java +++ b/src/com/jpexs/decompiler/flash/exporters/morphshape/CanvasMorphShapeExporter.java @@ -526,7 +526,7 @@ public class CanvasMorphShapeExporter extends MorphShapeExporterBase { } private String useRatioColor(RGB color, RGB colorEnd) { - return "tocolor(ctrans.apply([" + useRatioInt(color.red, colorEnd.red) + "," + useRatioInt(color.green, colorEnd.green) + "," + useRatioInt(color.blue, colorEnd.blue) + ",((" + useRatioInt((color instanceof RGBA) ? ((RGBA) color).alpha : 255, (colorEnd instanceof RGBA) ? ((RGBA) colorEnd).alpha : 255) + ")/255)))"; + return "tocolor(ctrans.apply([" + useRatioInt(color.red, colorEnd.red) + "," + useRatioInt(color.green, colorEnd.green) + "," + useRatioInt(color.blue, colorEnd.blue) + ",((" + useRatioInt((color instanceof RGBA) ? ((RGBA) color).alpha : 255, (colorEnd instanceof RGBA) ? ((RGBA) colorEnd).alpha : 255) + ")/255)]))"; } }