db2tile/tile_colors.php contains color generation functions.