Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
/ pyhama Public archive

Convert an image into a pegboard as a template for Hama Beads

Notifications You must be signed in to change notification settings

sdelquin/pyhama

Repository files navigation

PyHama

Tool written in Python to convert an image into a pegboard and using it as a template for Hama Beads.

Installation

$ pipenv install

Usage

$ pipenv run python pyhama -h
PyHama

Usage:
    pyhama [--pb_width=<pbw>] [--pb_height=<pbh>] [--beadsize=<bs>] INPUT

Options:
    -h --help           Show this screen
    --pb_width=<pbw>    Pegboard size (measured in beads) [default: 15]
    --pb_height=<pbh>   Pegboard size (measured in beads) [default: 15]
    --beadsize=<bs>     Bead size (measured in pixels) [default: 30]
    INPUT               Input image

Example

$ pipenv run python pyhama python_logo.png
Done! Hama beads output template in: pegboard.png

Test

$ pytest

About

Convert an image into a pegboard as a template for Hama Beads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages