blueprint v0.3.0 Blueprint.Plot.Style

Convenient functions for styling graphs.

Link to this section Summary

Functions

Produce a colour for a given string

Link to this section Functions

Link to this function colourize(name)
colourize(String.t()) :: String.t()

Produce a colour for a given string.

iex> Blueprint.Plot.Style.colourize("Foo.Bar")
"#A6ff00"

iex> Blueprint.Plot.Style.colourize("Foo.Foo")
"#A6ff00"

iex> Blueprint.Plot.Style.colourize("Bar.Bar")
"#ff6A00"