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/

PR:		266117
This commit is contained in:
Jesús Daniel Colmenares Oviedo 2023-05-01 08:46:28 -04:00 committed by Robert Clausecker
parent 3b5c528f89
commit ee97dc413d
4 changed files with 30 additions and 0 deletions

View file

@ -852,6 +852,7 @@
SUBDIR += py-cogdumper
SUBDIR += py-colorcet
SUBDIR += py-colorthief
SUBDIR += py-colorz
SUBDIR += py-colour
SUBDIR += py-descartes
SUBDIR += py-django-easy-thumbnails

View file

@ -0,0 +1,21 @@
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
NO_ARCH= yes
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1661849528
SHA256 (colorz-1.0.3.tar.gz) = c04ff63896281f2ee1327bcdff2e76a339f70559abd8a25d28c0d1fb28480d3e
SIZE (colorz-1.0.3.tar.gz) = 5109

View file

@ -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.