Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.settings
example
ideExample
lib
src
test/wordcram
.classpath
.project
LICENSE
NOTICE
RELEASENOTES.txt
build.xml
cheatsheet.html
cheatsheet.txt
docgen.rb
readme.md
wordcram.png

readme.md

Wordcram

http://wordcram.org/

Create awesome word clouds!

Example

This code:

import wordcram.*;
import wordcram.text.*;

void setup() {
  size(600, 400);
  background(0);

  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();
  }
}  

Gives you this image:

Something went wrong with that request. Please try again.