Package wordcram

Examples of wordcram.WordCram


        processing.init();
        processing.start();

        try {
            WordCram wordCram = new WordCram(processing)
                    .fromTextString(PApplet.loadStrings(System.in))
                    .withColorer(Colorers.twoHuesRandomSats(processing))
                    .withAngler(Anglers.mostlyHoriz())
                    .withWordPadding(4)
                    .withPlacer(Placers.centerClump());

            ImageConfiguration imageConfig = parseArgs(args, wordCram);

            PGraphics image = processing.createGraphics(imageConfig.width, imageConfig.height, JAVA2D);
            try {
                wordCram.withCustomCanvas(image);

                image.beginDraw();
                wordCram.drawAll();
                image.endDraw();

                image.save(imageConfig.fileName);

            } finally {
View Full Code Here

TOP

Related Classes of wordcram.WordCram

Copyright © 2018 www.massapicom. 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.