RandomColor.hex

You're seeing just the function hex, go back to RandomColor module for more information.

Generator a random color

Options

  • hue: - :monochrome, :red, :orange, :yellow, :green, :blue, :purple, :pink
  • luminosity: - :dark, :bright, :light, :random

Output Format

  • string - "#13B592"

Examples

iex> RandomColor.hex(hue: :blue)