3. Implement the mapping & rendering in code.
Knowing my components, dimensions, and space, I need to then translate that into code that generates images of patterns. To do so, I tentatively plan to use Python's TkInter package for image rendering. Here's some steps that will be involved in this process:
- Be able to generate a background grid
- Take images of components (from step 1) and manually change them into bitmaps
- Define scaling and recursion logic for each component so they can be adjusted nicely for different grid sizes.
- Write color logic
- Section off bytes for each dimension to define number ↔ component mapping . Do some bit twiddling.
- Put it all together in a function that takes a hash, entropy, list of possible colors, and spits out an image of the pattern with a key of colors
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .