Arkoniak/ColorPrinting.jl

★ 0Forks 0JuliaGitHub ↗Compare

README

ColorPrinting

Stable Dev Build Status Coverage

Examples

Nested printing

using ColorPrinting

cs = ColorScheme(:foo => :red, :bar => :green)
cs2 = ColorScheme(:foo => :red, :bar => :yellow)
print(cs, c"hello :foo{new :bar{green} world}!")
print(cs2, c"hello :foo{new :bar{green} world}!")

Interpolation

using ColorPrinting
using Statistics

v = rand(100);
cs = ColorScheme(:median => :red, :δ => :yellow)

s = c"""
Median: :median{$(median(v))}
Standard deviation: :δ{$(std(v))}
"""

print(cs, s)

Issues