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
- If you want to use this with a different color palette, update the enum of colors to have the hex values that you want.
- If necessary, update the SQUARE_WIDTH constant to be the number of pixels you want your squares to be
- run
python amma.py
- If the code does not successfully finish, try again. The algorithm is not guaranteed to succeed as is.
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.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.