Lightweight colors
Author FedeClaudi
4 Stars
Updated Last
1 Year Ago
Started In
February 2022


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)


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

Required Packages

No packages found.