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

Metadata

Release files for pyrolld 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrolld 0.2.2
File Size Uploaded Provenance Actions
pyrolld-0.2.2.tar.gz 3.1 kB Without provenance Details for pyrolld-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyrolld 0.2.2
File Interpreter ABI Platform Actions
pyrolld-0.2.2-py3-none-any.whl Python 3 none any Details for pyrolld-0.2.2-py3-none-any.whl

Total release size: 6.2 kB

Release files / pyrolld-0.2.2.tar.gz

Download URL pyrolld-0.2.2.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0301085ff10cab81dd97d8ed0a85a74c8c984a1e44206f42bc01edb49a45323f
BLAKE2b-256 checksum
How to use checksums
9f69af87e963aa87aa2bb922c5b9802f10061c15f69603636baa048d2d4d4fd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-58-generic

Release files / pyrolld-0.2.2-py3-none-any.whl

Download URL pyrolld-0.2.2-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49c3b9b930b20aa97007a1523df9676f8b8952ab608e7d61cd70e47b6315c143
BLAKE2b-256 checksum
How to use checksums
b87ef70e2d51051336752403a285901a54a085bee1b0935d0e2b17da58411858
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-58-generic

Security for pyrolld 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page