From 1bb4bc595c1e4c335978f07a42e46ec67f8b59cd Mon Sep 17 00:00:00 2001 From: Alex Lockwood Date: Mon, 5 Mar 2018 12:46:32 -0800 Subject: [PATCH] simplify polygons example --- .../src/main/java/com/example/kyrie/PolygonsFragment.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sample/src/main/java/com/example/kyrie/PolygonsFragment.java b/sample/src/main/java/com/example/kyrie/PolygonsFragment.java index 80d3d3c..035492c 100644 --- a/sample/src/main/java/com/example/kyrie/PolygonsFragment.java +++ b/sample/src/main/java/com/example/kyrie/PolygonsFragment.java @@ -98,12 +98,10 @@ private KyrieDrawable createLapsDrawable() { .duration(DURATION); builder.child( CircleNode.builder() - .centerX(0) - .centerY(0) - .radius(8) .fillColor(Color.BLACK) - .translateX(pathMotion.transform(p -> p.x)) - .translateY(pathMotion.transform(p -> p.y))); + .radius(8) + .centerX(pathMotion.transform(p -> p.x)) + .centerY(pathMotion.transform(p -> p.y))); } return builder.build();