View Source Isotope.Utils (Isotope v0.2.0)
Utilitary functions for working with noise maps.
Link to this section Summary
Functions
Shows the given noise map on the stdout using ANSI color codes.
Link to this section Functions
@spec show_noisemap(Isotope.Noise.noisemap()) :: :ok
Shows the given noise map on the stdout using ANSI color codes.
This won't work if your terminal doesn't support ANSI color codes.
{:ok, noise} = Isotope.Noise.new()
noise |> Isotope.Noise.noise_map({50, 50})
|> Isotope.Utils.show_noisemap()
# Outputs noise visualization
:ok