View Source Weather.Colors (Weather v0.1.1)

Provides ANSI color codes for use in the Weather module.

Summary

Functions

Formats and colorizes a given temperature.

Prints colorized text with associated color codes.

Prints the current color configuration.

Removes ANSI characters from a given string.

Functions

@spec colorize(number(), Weather.Opts.t()) :: String.t()

Formats and colorizes a given temperature.

@spec list() :: :ok

Prints colorized text with associated color codes.

@spec list_current() :: :ok

Prints the current color configuration.

@spec remove_ansi(String.t()) :: String.t()

Removes ANSI characters from a given string.