use of su.levenetc.android.textsurface.animations.Scale in project TextSurface by elevenetc.
the class ScaleTextSample method run.
public static void run(TextSurface textSurface) {
// Text textA = TextBuilder.create("oat cake")
//// .setScale(2.0f, Pivot.RIGHT)
// .build();
//
// textSurface.play(TYPE.SEQUENTIAL,
// //Just.show(textA)
// new Scale(textA, 1000, 0.1f, 1.5f, Pivot.RIGHT)
// );
Text textA = TextBuilder.create("textA").build();
Text textB = TextBuilder.create("textB").setPosition(Align.LEFT_OF, textA).build();
Text textC = TextBuilder.create("textC").setPosition(Align.RIGHT_OF, textA).build();
Text textD = TextBuilder.create("textD").setPosition(Align.LEFT_OF, textB).build();
Text textE = TextBuilder.create("textE").setPosition(Align.RIGHT_OF, textC).build();
textSurface.play(TYPE.PARALLEL, Just.show(textA, textB), new Sequential(new Scale(textA, 1000, 1, 2, Pivot.CENTER), new Scale(textA, 1000, 2, 1, Pivot.CENTER)));
}
Aggregations