WordCram

open-source word clouds for Processing

Follow WordCram on Twitter @wordcram

Ask a Question in the Forum /wordcram

Pull Requests Welcome on GitHub danbernier/WordCram

Latest News

WordCram 1.0.0 Released, for Processing 3.0

WordCram 0.6.2 Released

WordCram 0.6.1 Released

All posts

WordCram Release 0.1

The WordCram 0.1 release is here.  Don’t let the low release number fool you – it’s pretty solid code.  Since the initial release, I’ve improved performance, and cleaned up the API, making it faster, and easier to use.

Here’s the flavor of the API change…from this:

1
2
3
4
5
6
7
8
9
10
11
12
WordCram wordCram = new WordCram(this,
    new TextSplitter().split(loadStrings("tao-te-ching.txt")),
    Fonters.FonterFor(createFont("sans", 1)),
    Sizers.byWeight(5, 60),
    Colorers.TwoHuesRandomSats(this),
    Anglers.MostlyHoriz,
    new CenterClumpWordPlacer(),
    new SpiralWordNudger());

while (wordCram.hasMore()) {
    wordCram.drawNext();
}

to this:

1
2
3
4
5
6
7
8
9
WordCram wordCram = new WordCram(this,
    new TextSplitter().split(loadStrings("tao-te-ching.txt")),
    Fonters.alwaysUse(createFont("sans", 1)),
    Sizers.byWeight(5, 60),
    Colorers.twoHuesRandomSats(this),
    Anglers.mostlyHoriz(),
    Placers.centerClump());

wordCram.draw();

A very few further API tweaks are planned, but I wanted to get a first release out for you to play with, and to write some tutorials against.

Download the bits, give it a test-drive, and let me know what you think.

<<

>>