Class StringExpressionGenerator


  • public class StringExpressionGenerator
    extends Object
    Generates Picasso expressions based on an input string The same input text will always produce the same expression
    • Constructor Detail

      • StringExpressionGenerator

        public StringExpressionGenerator()
        Creates a new StringExpressionGenerator Disables random() in generated expressions
    • Method Detail

      • generate

        public String generate​(String input)
        Generates an expression based on the input string The same string will always produce the same expression
        Parameters:
        input - the text to generate art from
        Returns:
        a Picasso expression string (without random())
      • getGenerator

        public RandomExpressionGenerator getGenerator()
        Gets the underlying RandomExpressionGenerator
        Returns:
        the RandomExpressionGenerator instance