Code Monkey home page Code Monkey logo

pacbyn's Introduction

pacbyn

Creates a palletised, pixelised colour-by-numbers for kids, from an input image.

I wrote this during the 2020 COVID-19 lockdowns to keep my kids occupied while I worked at home.

boring stuff

pacbyn is GPLv3 licensed.

It uses the colour quantisation algorithm presented on Stack Overflow by user Balder.

parameters

  • -i: input image (must be square)
  • -w: output pixel rows & columns (default 40)
  • -n: nr of colours in the pallete (default 20)
  • -o: output image (default output.png)
  • -d: produces a debug output image
  • -k: key generation method, one of the following (default INT_RAND):
    • INT_SEQ: sequential integers, starting at 0
    • INT_RAND: random integers in [0,100)
    • ALPHA_SEQ: sequential lower case letters, starting at 'a'
    • ALPHA_RAND: random lower case letters in [a,z]

examples

Given this image:

mclachlan.pacbyn.Main -i minion.png -o output_example.png -d

mclachlan.pacbyn.Main -i minion.png -o output_example.png

pacbyn's People

Contributors

alan-mcl avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.