Isotope.Noise.new

You're seeing just the function new, go back to Isotope.Noise module for more information.

Returns a new noise reference using the default options.

iex> {:ok, _ref} = Isotope.Noise.new()

Specs

new(options()) :: {:ok, noise_ref()} | {:error, :unsupported_noise}

Returns a new noise reference using the provided options.

iex> {:ok, _ref} = Isotope.Noise.new(%Isotope.Options{seed: 100})

iex> {:error, :unsupported_noise} = Isotope.Noise.new(%Isotope.Options{noise_type: :foobar})