Examples of animateStartLoop()


Examples of libshapedraw.primitive.Color.animateStartLoop()

    private void createColorShiftingShape() {
        WireframeCuboid box = new WireframeCuboid(8,63,2, 9,64,3);
        Color color = Color.CRIMSON.copy();
        box.setLineStyle(color, 3.0F, false);
        libShapeDraw.addShape(box);
        color.animateStartLoop(Color.MEDIUM_BLUE.copy().setAlpha(0.2), true, 750);

        // Prefer a functional coding style? This is the equivalent of the above:
        //libShapeDraw.addShape(
        //        new WireframeCuboid(8,63,2, 9,64,3)
        //        .setLineStyle(
View Full Code Here

Examples of libshapedraw.transform.ShapeRotate.animateStartLoop()

                1.0F);
        sphere.setSlices(8).setStacks(8).setWireframe(true, 3.0F);
        ShapeRotate rotate = new ShapeRotate(0.0, Axis.Y);
        sphere.addTransform(rotate);
        libShapeDraw.addShape(sphere);
        rotate.animateStartLoop(360.0, false, 5000);
    }

    private void createColorShiftingShape() {
        WireframeCuboid box = new WireframeCuboid(8,63,2, 9,64,3);
        Color color = Color.CRIMSON.copy();
View Full Code Here

Examples of libshapedraw.transform.ShapeRotate.animateStartLoop()

        // If you're animating a large number of Shapes, or if you want
        // animations to be in sync with each other, you can simply re-use a
        // single ShapeRotate for multiple Shapes. This shared instance
        // technique can also be used for Colors and other animateable objects.
        shapeRotations.add(rotate);
        rotate.animateStartLoop(360.0, false, (long) (3000 + Math.random()*10000));
    }
}
View Full Code Here

Examples of libshapedraw.transform.ShapeScale.animateStartLoop()

        WireframeCuboid box = new WireframeCuboid(8,63,4, 9,64,5);
        box.setLineStyle(Color.GOLD.copy(), 3.0F, true);
        ShapeScale scale = new ShapeScale(0.5, 1.0, 2.0);
        box.addTransform(scale);
        libShapeDraw.addShape(box);
        scale.animateStartLoop(2.0, 1.0, 0.5, true, 4500);

        // Since this is a simple WireframeCuboid, we could have animated
        // box.getLowerCorner() and box.getUpperCorner() instead of using a
        // ShapeScale OpenGL transform. Either method is valid, but simplicity
        // is good.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.