From 7f41715088e58ebc0295957155a5edde3115f13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Daniel=20Colmenares=20Oviedo?= Date: Mon, 1 May 2023 08:46:28 -0400 Subject: [PATCH] graphics/py-colorz: New port: Color scheme generator A color scheme generator. Takes an image (local or online) and grabs the most dominant colors using kmeans. Also creates bold colors by adding value to the dominant colors. Finally, outputs the colors to stdout (one normal and one bold per line, space delimited) and generates an HTML preview of the color scheme. WWW: https://github.com/metakirby5/colorz/ --- graphics/py-colorz/Makefile | 19 +++++++++++++++++++ graphics/py-colorz/distinfo | 3 +++ graphics/py-colorz/pkg-descr | 5 +++++ 3 files changed, 27 insertions(+) create mode 100644 graphics/py-colorz/Makefile create mode 100644 graphics/py-colorz/distinfo create mode 100644 graphics/py-colorz/pkg-descr diff --git a/graphics/py-colorz/Makefile b/graphics/py-colorz/Makefile new file mode 100644 index 0000000000..c312e1a004 --- /dev/null +++ b/graphics/py-colorz/Makefile @@ -0,0 +1,19 @@ +PORTNAME= colorz +DISTVERSION= 1.0.3 +CATEGORIES= graphics python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= DtxdF@disroot.org +COMMENT= Color scheme generator +WWW= https://github.com/metakirby5/colorz/ + +LICENSE= MIT + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist distutils + +.include diff --git a/graphics/py-colorz/distinfo b/graphics/py-colorz/distinfo new file mode 100644 index 0000000000..3bca4211c1 --- /dev/null +++ b/graphics/py-colorz/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1661849528 +SHA256 (colorz-1.0.3.tar.gz) = c04ff63896281f2ee1327bcdff2e76a339f70559abd8a25d28c0d1fb28480d3e +SIZE (colorz-1.0.3.tar.gz) = 5109 diff --git a/graphics/py-colorz/pkg-descr b/graphics/py-colorz/pkg-descr new file mode 100644 index 0000000000..b6568043a9 --- /dev/null +++ b/graphics/py-colorz/pkg-descr @@ -0,0 +1,5 @@ +A color scheme generator. Takes an image (local or online) and grabs +the most dominant colors using kmeans. Also creates bold colors by +adding value to the dominant colors. Finally, outputs the colors +to stdout (one normal and one bold per line, space delimited) and +generates an HTML preview of the color scheme. -- 2.38.1