MyterialColors.jl

Lightweight colors
Author FedeClaudi
Popularity
4 Stars
Updated Last
2 Years Ago
Started In
February 2022

Myterial

Stable Dev Build Status Coverage

A simple colors package.

Importing MyterialColors imports several named colors (hex colors) in the name space:

using MyterialColors


print(salmon, indigo)  # prints: #FF7043, #5C6BC0

colors methods

In addition, MyterialColors exports two colors types: Hex and RGB.

rgb = RGB(255, 255, 255)
hex = Hex("#ffffff")

and methods to convert bewtween the two:

hex = Hex(RGB(255, 255, 255))  # or rgb2hex(255, 255, 255)
rgb = RGB(Hex(salmon))  # or hex2rgb(salmon)

Palette

MyterialColors also offers methods to create palettes of colors.

palette = Palette(red_dark, gree_dark, indigo_dark)  # or Palette(Hex(salmon), Hex(indigo))

using Plots
plot(palette)

Required Packages

No packages found.