Rob’s Trains
// readme
robs_trains
Rob’s Trains
Notes
Њ means there’s bad graphics or i need to review them
Љ means bad code
Dependencies
Compiling
run ‘pip install -r requirements.txt’ or manually download dependencies
run generate.py
PSDLivery
Definition
PSDLivery has 3 compositing arguments: shading, paint and overlay.
Each can specify either one, many or no layers in PSD file (by layer name).
If more than one layer is specified for the group they’re merged between any further processing is done.
Syntax:
0. None: Just omit the argument or use shading=None.
- One:
shading='layer'orshading=('layer',) - Many:
shading=('layer1', 'layer2', 'layer3')
Paint processing
Palette for paint is read from compal.png. 5th column is the main colour. For every pixel of one of the main colours in the paint layer code looks at pixel in the shading layer. If shading pixel is of blue CC range it takes the CC index of that colour and uses it to get corresponding colour from the paint palette (within the same row of main colour).
- First two rows of paint palette must…