/amma_cal

Primary LanguagePythonCreative Commons Attribution Share Alike 4.0 InternationalCC-BY-SA-4.0

Amma CAL

This project exists solely to help me plan a blanket I'm crocheting - the Amma Cal

I want to draw a representation of my color planning and to make sure the distribution of colors is aesthetically pleasing.

I am a computer scientist and normally I do things zero-indexed when I'm programming. But, when I'm crocheting, everything is 1-indexed. In this program, sometimes I don't make things zero indexed and sometimes I do. Oh well! Maybe someday I'll clean it up. Or not!

Do you want to know my thought process? Check out my notes

Usage

  1. If you want to use this with a different color palette, update the enum of colors to have the hex values that you want.
  2. If necessary, update the SQUARE_WIDTH constant to be the number of pixels you want your squares to be
  3. run python amma.py
  4. If the code does not successfully finish, try again. The algorithm is not guaranteed to succeed as is.

Attribution

The code found in shapes.py came from this tutorial and I am importing it in my main amma.py file. Fwiw, I would not have chosen this license, but because I am utilizing underlying code with this license and modifying it to fit my needs, CC requires I use this license.

Shield: CC BY-SA 4.0

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

CC BY-SA 4.0