Permalink
Commits on Feb 13, 2016
  1. Bump version to 1.0.1

    committed Feb 13, 2016
  2. Add WordBag, the first new WordSource.

    A WordBag "holds" N words, made from copies of the initial words you
    give it.
    
    It also weights them randomly, from 0..1. If you don't do anything,
    those 0..1 will be distributed quadratically, by squaring each random
    weight. If you want more control over this, you can set
    weightDistributionPower to 1, or 10, or whatever, to control the
    distribution. I love this idea, but I hate the names I have for it right
    now.
    committed Oct 8, 2014
  3. Add WordSource, between WordCram's Word[], and a TextSource.

    A WordSource will return a Word[], if you want to have a class that
    makes a Word[] in some common way, but don't want all the
    text-processing that comes with using a TextSource, like cue.language.
    
    The intent is to allow for a WordBag, which is coming right up.
    committed Oct 8, 2014
Commits on Jan 6, 2016
  1. MERGE master into gh-pages, don't rebase it.

    This should avoid all those crazy rebase conflicts, and hopefully keep
    the history more in-line.
    committed Jan 6, 2016
  2. Render each gallery sketch to its OWN output folder.

    `processing-java` was borking, because the output folder already
    existed.
    committed Jan 6, 2016
  3. Describe gallery-import rake task.

    This lets it appear in `rake -T`
    committed Jan 6, 2016
Commits on Oct 31, 2015
  1. Merge branch 'master' of github.com:danbernier/WordCram

    Conflicts:
    	VERSION
    committed Oct 31, 2015
  2. Bump version to 0.6.2

    committed Aug 2, 2015
  3. Update Wikipedia example sketch to use HTTPS.

    See f51ad64 and
    #64 for more info.
    committed Aug 2, 2015
  4. Bump version to 1.0.0

    committed Oct 31, 2015
  5. Performance tweak: break after finding a colliding word.

    I tried this tweak before, but got mixed benchmarking results.
    
    This time, on a sample sketch (below), I'm seeing:
    * avg 11078 seconds WITHOUT the fix
    * avg 6975 seconds WITH the fix
    
    Here's the raw timings I got on 6 runs each:
    slow    15597   14347   11205   8158    9126    8034    11077.8333333333
    fast    13516   5193    6457    4579    6666    5440    6975.1666666667
    
    Here's the sketch:
    
        import wordcram.*;
    
        void setup() {
          size(800, 800);
        }
    
        void draw() {
          background(0);
    
          // I doubt the font & colors matter, but...
          WordCram wc = new WordCram(this).fromWebPage("http://nytimes.com").withFonts("Bebas").withColor(#555555);
    
          long start = System.currentTimeMillis();
          wc.drawAll();
          long end = System.currentTimeMillis();
          println(end - start);
    
          if (frameCount > 5) {
            exit();
          }
        }
    committed Oct 31, 2015
  6. Merge pull request #66 from danbernier/processing3

    Support for Processing 3
    committed Oct 31, 2015
  7. processing.{core,awt}.PGraphicsJava2D

    Fixes #65
    committed Oct 31, 2015
  8. (m) fix deprecations

    PVector.get() -> PVector.copy()
    PFont.getFont() -> (Font)PFont.getNative()
    committed Oct 31, 2015
  9. (m) remove unneeded imports.

    committed Oct 31, 2015
Commits on Aug 2, 2015
  1. Merge pull request #64 from alanorth/update-readme

    README.md: Update Wikipedia example to use HTTPS
    committed Aug 2, 2015
Commits on Jul 30, 2015
  1. README.md: Update Wikipedia example to use HTTPS

    Wikipedia recently started forcing HTTPS, and it seems processing
    can't handle the HTTP -> HTTPS redirect and spits out an unrelated
    error.
    
    Signed-off-by: Alan Orth <alan.orth@gmail.com>
    alanorth committed Jul 30, 2015
Commits on Feb 4, 2015
  1. Update copyright NOTICE

    committed Feb 4, 2015
Commits on Feb 1, 2015
  1. Add example/gallery, and a Rake task to include them in jekyll.

    (and exclude sketch.properties)
    committed Feb 1, 2015
Commits on Jan 31, 2015
  1. Add _site to .gitignore and Rakefile#clean.

    _site is Jekyll's build destination.
    committed Jan 31, 2015