WordCram 0.5.6 released

This release includes three bug fixes (#6, #7, and #8), and some small performance improvements, that should get us a tiny bit closer to faster wordcrams. Get the better bits, and happy hacking!

This entry was posted in release. Bookmark the permalink.

7 Responses to WordCram 0.5.6 released

  1. kawalere says:

    Hello! I’ve been starting to use WordCram, and I find it lovely. However, it is not drawing all of my words – I tell it to draw the top ten words, and it will draw eight or nine. It is seeing all ten – I have it print out the top ten words to the screen along with their weights and that works just fine. I’ve tried changing colors, but to no avail. Any idea what might be wrong?

    Here’s my code:

    import wordcram.*;


    WordCram wordcram = new WordCram(this);


    Word[]words = wordcram.getWords();
    for (int i=0; i < 5; i++) {
    Word word = words[i];
    println(word.word + ", " + i + " ,"+word.weight);

    Thank you!

  2. Often, that happens because there’s not quite enough room for all the words, at least according to the Placer strategy. Try using a smaller font, or a bigger sketch.

  3. kawalere says:

    Thanks for the quick response! I’ve tried resizing the canvas to be comically large and the fonts to be comically small, but the same thing is still happening. Is it possible that there’s some sort of overriding parameter in the background somewhere that is forcing it to keep that invisible color(0) on its palette?

  4. Hrm, that’s unlikely. Here’s a thought: when your sketch runs, it should print something in the console about what language it thinks your text is in – what does it say? Does it match what you’d expect?

    Otherwise, it’s tough to figure out – could you send me your convo.txt?

  5. Swarupa says:

    I am also facing the same issue. I am invoking WordCram through PApplet ( Processing Core).

    Below is the code snippet of PApplet’s setup() and draw().

    public void setup() {

    words = new WordCram(this);


    public void draw() {
    Word[] w = new Word[15];
    w[0] = new Word(“Hello”,5);
    w[1] = new Word(“World”,2);
    w[2] = new Word(“Timely”,3);
    w[3] = new Word(“Incomplete”,5);
    w[4] = new Word(“Good”,8);
    w[5] = new Word(“Excellent”,10);
    w[6] = new Word(“Bad review”,2);
    w[7] = new Word(“Average”,5);
    w[8] = new Word(“Very bad”,1);
    w[9] = new Word(“Optimal”,7);
    w[10] = new Word(“Nice work”,9);
    w[11] = new Word(“Very low”,3);
    w[12] = new Word(“Outstanding”,11);
    w[13] = new Word(“Highly rated”,9);
    w[14] = new Word(“Imperfect”,4);

    Color c = new Color(139,0,0);
    System.out.println(” c.getBlue() : “+c.getBlue());
    for ( int i=0; i =5.0)


    PVector position = w[2].getRenderedPlace();

    System.out.println(” this.height : “+this.height);


  6. Yow, the form killed your code there. Could you open a github issue, and explain more clearly what the problem is? Thanks!

  7. SwarupaK says:

    Thanks for your quick reply.
    I’ve raised issue in github with complete code. Please check issue#18

Comments are closed.