Sha256: 16faa9c7398170ddbe64b14d92278d6bfbd519afc46bd1dc76c2a25c694d5c2c
Contents?: true
Size: 372 Bytes
Versions: 9
Compression:
Stored size: 372 Bytes
Contents
package wordcram; import java.util.Random; import processing.core.PFont; public class Fonters { public static WordFonter alwaysUse(final PFont pfont) { return (Word word) -> pfont; } public static WordFonter pickFrom(final PFont... fonts) { final Random r = new Random(); return (Word w) -> fonts[r.nextInt(fonts.length)]; } }
Version data entries
9 entries across 9 versions & 1 rubygems