mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
minor tweak for clarity
This commit is contained in:
@@ -83,7 +83,11 @@ public class BaseObject extends PShape {
|
||||
String transformStr = properties.getStringAttribute("transform");
|
||||
if (transformStr != null) {
|
||||
float[] t = parseMatrix(transformStr);
|
||||
matrix = new PMatrix3D(t[0], t[1], t[2], t[3], t[4], t[5]);
|
||||
//matrix = new PMatrix2D(t[0], t[1], t[2], t[3], t[4], t[5]);
|
||||
matrix = new PMatrix3D(t[0], t[2], 0, t[4],
|
||||
t[1], t[3], 0, t[5],
|
||||
0, 0, 1, 0,
|
||||
0, 0, 0, 1);
|
||||
}
|
||||
|
||||
parseColors(properties);
|
||||
|
||||
@@ -11,8 +11,8 @@ public class Circle extends BaseObject {
|
||||
super(parent, properties);
|
||||
this.x = properties.getFloatAttribute("cx");
|
||||
this.y = properties.getFloatAttribute("cy");
|
||||
float radius = properties.getFloatAttribute("r") * 2;
|
||||
width = height = radius;
|
||||
float radius = properties.getFloatAttribute("r");
|
||||
width = height = radius * 2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -190,6 +190,7 @@ public class SVG extends BaseObject {
|
||||
}
|
||||
|
||||
//root = new Group(null, svg);
|
||||
parseGroup(svg); // ?
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user