Back to Parent

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:

  1. Be able to generate a background grid
  2. Take images of components (from step 1) and manually change them into bitmaps
  3. Define scaling and recursion logic for each component so they can be adjusted nicely for different grid sizes.
  4. Write color logic
  5. Section off bytes for each dimension to define number ↔ component mapping . Do some bit twiddling
  6. 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!

0