parameters: (
      output_dir: Path,
      name: str,
  )
docstring: Generate and write JSON tile entry for compose.py
docstring_summary: Generate and write JSON tile entry for compose.py
docstring_tokens: Generate and write JSON tile entry for compose . py
function: def write_json(
      output_dir: Path,
      name: str,
  ) -> None:
      """
      Generate and write JSON tile entry for compose.py
      """
      tile_entry = TILE_ENTRY_TEMPLATE.copy()
      tile_entry['id'] = name
      tile_entry['fg'] = [name] + [f'{name}{suffix}' for suffix in ROTATIONS]
      filepath = output_dir / f'{name}.json'
      with open(filepath, 'w') as file:
          json.dump(tile_entry, file)
function_tokens: def write_json ( output_dir : Path , name : str , ) -> None : tile_entry = TILE_ENTRY_TEMPLATE . copy ( ) tile_entry [ 'id' ] = name tile_entry [ 'fg' ] = [ name ] + [ f'{name}{suffix}' for suffix in ROTATIONS ] filepath = output_dir / f'{name}.json' with open ( filepath , 'w' ) as file : json . dump ( tile_entry , file )