Sha256: 089552a484d73128edc68f0f19ed4098e194010a754dd78b6ca9164428295cf5
Contents?: true
Size: 763 Bytes
Versions: 9
Compression:
Stored size: 763 Bytes
Contents
package wordcram; /** * A WordColorer tells WordCram what color to render a word in. * <p> * <b>Note:</b> if you implement your own WordColorer, you should be familiar * with how <a href="http://processing.org/reference/color_datatype.html" * target="blank">Processing represents colors</a> -- or just make sure it uses * Processing's <a href="http://processing.org/reference/color_.html" * target="blank">color</a> method. * <p> * Some useful implementations are available in {@link Colorers}. * * @author Dan Bernier */ public interface WordColorer { /** * What color should this {@link Word} be? * * @param word the word to pick the color for * @return the color for the word */ public int colorFor(Word word); }
Version data entries
9 entries across 9 versions & 1 rubygems