Function library for colors
# -*- coding: utf-8 -*-
import colourettu
c1 = colourettu.colour()
c2 = colourettu.colour("#eee")
c3 = colourettu.colour("#456bda")
c4 = colourettu.colour([3, 56, 129])
c5 = colourettu.colour((63, 199, 233))
c6 = colourettu.colour([0.242, 0.434, 0.165], normalized_rgb=True)
all_colours = [c1, c2, c3, c4, c5, c6]
p2 = colourettu.palette()
p2.from_list(all_colours)
p2.to_image('p1.png', max_width=360, vertical=False)
Recommended Posts