Gradientty
Class methods
crystal(str : String)
Predefined crystal-style gradient.
str - The string to color.
Example:
puts Gradientty.crystal("Hello Crystal!")
Factory method: creates a ColorInstance from an array of hex color strings.
colors - Array of hex color strings for the gradient.
Example:
custom = Gradientty.gradient(["#ff0000", "#00ff00"])
puts custom.call("Hello")
pastel(str : String)
Predefined pastel gradient.
str - The string to color.
Example:
puts Gradientty.pastel("Hello Pastel!")