Package squidpony.squidgrid.shape

Examples of squidpony.squidgrid.shape.TiledShape.rotateClockwise()


        System.out.println("");

        verts = new ArrayList<>();
        horzs = new ArrayList<>();
        TiledShape shape = new TiledShape(loadShapeImage("tiles/brick test.png"));
        shape.rotateClockwise();
        verts.add(shape);
        horzs.add(new TiledShape(loadShapeImage("tiles/brick test.png")));
        System.out.println(ShapeGenerator.buildRunningBond(100, 100, verts, horzs));
    }
View Full Code Here


    public void testBasketWeave() {
        ArrayList<TiledShape> verts = new ArrayList<>();
        ArrayList<TiledShape> horzs = new ArrayList<>();
        TiledShape shape = new TiledShape(loadShapeImage("tiles/brick test.png"));
        shape.rotateClockwise();
        verts.add(shape);
        horzs.add(new TiledShape(loadShapeImage("tiles/brick test.png")));
        System.out.println(ShapeGenerator.buildBasketWeave(100, 100, verts, horzs, true));
        System.out.println("");
        System.out.println(ShapeGenerator.buildBasketWeave(100, 100, verts, horzs, false));
View Full Code Here

    public void testWindmill() {
        ArrayList<TiledShape> verts = new ArrayList<>();
        ArrayList<TiledShape> horzs = new ArrayList<>();
        TiledShape shape = new TiledShape(loadShapeImage("tiles/brick test.png"));
        shape.rotateClockwise();
        verts.add(shape);
        horzs.add(new TiledShape(loadShapeImage("tiles/brick test.png")));
        showColors(ShapeGenerator.buildWindmill(100, 100, verts, horzs, verts));
    }
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.