WordCram
WordCram copied to clipboard
[Contrib] A Colorer taking the color from an image and the position of the word
The idea is to have two source images. One solid one for the ShapeBasedPlacer to place the words in, and another colored one for the color of the words, in that way, one can create shapes by color. Works best with crams with lots of evenly sized words:
It currently has two modes, one which takes only the renderedLocation of the image and a slower one that counts all the covered pixels in the image and takes the most-covered color.
https://github.com/simpsus/WordCram/blob/sketches/src/contrib/ImageBasedWordColorer.java