Skip to main content

pyrolld

A package to generate color sequences from videos and images

Its main use is to create a set of unique colors from an image and then sort the colors according to the selected sorting method.

Installation

You can simply pip install this package:

pip install pyrolld

Usage

Here is an example:

from rolld import Roller


filepath = "image.png"
image = Roller(filepath)
rolled = image.roll()

rolled.show()

You can also chose between 3 different sorting methods ["HSV", "HSL", "YIQ", "LUM"]:

from rolld import Roller


filepath = "image.png"
image = Roller(filepath)
rolled = image.roll(sorter="LUM")

rolled.show()

Example

Here is an example. We are going to use the image lena.png:

And with this code we will "roll" the image:

from rolld import Roller


filepath = "lena.png"
roller = Roller(filepath)

sorters = ["HSV", "HSL", "YIQ", "LUM"]
for sorter in sorters:
    image = roller.roll(sorter=sorter)
    image.show()

Here is the output of all the sorting methods:

Luminance

YIQ

HSV

HSL

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrolld-0.2.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrolld-0.2.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pyrolld-0.2.2.tar.gz.

File metadata

  • Download URL: pyrolld-0.2.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-58-generic

File hashes

Hashes for pyrolld-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0301085ff10cab81dd97d8ed0a85a74c8c984a1e44206f42bc01edb49a45323f
MD5 d82a097067adb78dc54b080990409416
BLAKE2b-256 9f69af87e963aa87aa2bb922c5b9802f10061c15f69603636baa048d2d4d4fd5

See more details on using hashes here.

File details

Details for the file pyrolld-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: pyrolld-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-58-generic

File hashes

Hashes for pyrolld-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49c3b9b930b20aa97007a1523df9676f8b8952ab608e7d61cd70e47b6315c143
MD5 2b7af29bf62fb4e118255492f8ea587c
BLAKE2b-256 b87ef70e2d51051336752403a285901a54a085bee1b0935d0e2b17da58411858

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 files

0.2.1

2 files

0.1.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page