Skip to main content

Creates a chessboard pattern as an image.

pip install npchessimage

Tested against Windows 10 / Python 3.10 / Anaconda

        

        Args:
            block_size (int, optional): The size of each square block on the chessboard. Defaults to 10.
            width (int, optional): The total width of the chessboard image. Defaults to 1000.
            height (int, optional): The total height of the chessboard image. Defaults to 1000.
            colors (tuple or list, optional): The RGB color values for the chessboard. Defaults to ((0, 0, 0), (255, 0, 0), (255, 255, 0)).

        Returns:
            numpy.ndarray: The generated chessboard image as a NumPy array.

        Example:
            from npchessimage import create_chessboard

            chessboard = create_chessboard(block_size=20, width=800, height=600, colors=((255, 255, 255), (0, 0, 0)))
            print(chessboard.shape)

            # Output:
            # (600, 800, 3)

            img = create_chessboard(
                block_size=10,
                width=200,
                height=300,
                colors=((0, 0, 0), (255, 0, 0), (255, 255, 0)),
            )
            import cv2
            cv2.imwrite('c:\\testimage.png',img)

Metadata

Release files for npchessimage 0.10

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

Source distribution (sdist)

Source distribution for npchessimage 0.10
File Size Uploaded Provenance Actions
npchessimage-0.10.tar.gz 20.4 kB Without provenance Details for npchessimage-0.10.tar.gz

Built distribution (wheel)

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

Total release size: 41.3 kB

Release files / npchessimage-0.10.tar.gz

Download URL npchessimage-0.10.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c88ae6f6e93ce1f6db9789d15466dfdfa4f44d712f72091215b87604e45cfc85
BLAKE2b-256 checksum
How to use checksums
6a4cc1c5382d5a0cae8d57f59ea4708a8d99b04764a00de318bf99ffec5a5403
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / npchessimage-0.10-py3-none-any.whl

Download URL npchessimage-0.10-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84fbf16b3fd290fc04303ddeddddce56ec61a46fc895d816c6b8eae2aab79e65
BLAKE2b-256 checksum
How to use checksums
611aa8256cfad27b2293f3cecfa2fc6d4eb0943560c45c89ed0db99f25cd1304
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for npchessimage 0.10

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.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

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