@Override public BufferedImage render(String text) { List<? extends Img.Processor> processors = $.random(true, false) ? optionalA : optionalB; return Img.source(backgroundGenerator) .text(text) .color(Img.Random.darkColor()) .makeNoise() .setMaxLines(2 + randInt(5)) .setMaxLineWidth(3) .pipeline(processors) .get(); }
@Override public BufferedImage render(String text) { List<? extends Img.Processor> processors = $.random(true, false) ? optionalA : optionalB; return Img.source(backgroundGenerator) .text(text) .color(Img.Random.darkColor()) .makeNoise() .setMaxLines(2 + randInt(5)) .setMaxLineWidth(3) .pipeline(processors) .get(); }