0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

めざせpythonライブラリマスター (60)colourettu

Posted at

#【ライブラリ説明】
 色に関する関数ライブラリ

#【プログラム】

# -*- 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)

#【結果】
p2.png

#【参考サイト】
 pypi
 github
 document

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?