Description
This module actually generates the final image files.
Types
DataForCardColour = tuple[baseImagePath, fontPath: string, cardNames: seq[string]]
-
I ran out of unique names for this object. Its function is to be QoL data storage for a colour.
No more weird Option values. baseImagePath and fontPath are now EITHER the global base OR colour-specific override.
Procs
proc generateImagesWith(cardData: Table[string, CardColourData]) {. ...raises: [PixieError, ValueError, OSError, IOError], tags: [RootEffect, ReadIOEffect, WriteIOEffect, ReadDirEffect, WriteDirEffect].}
- Main proc in this module that accepts Table[string, CardColourData] and uses this to generate all cards!
proc getDataForColour(colourData: CardColourData): DataForCardColour {. ...raises: [], tags: [].}
- Converts CardColourData to DataForCardColour for ease of use in the generateImagesWith() proc.