How to change tileset color using code

:bust_in_silhouette: Reply From: exuin

Modulating the tilemap will modulate all of the tiles. If that’s not what you want, you need to access the tileset.

So

tile_map.tile_set.tile_set_modulate(id, color)

where id is the id of the tile you want to modulate and color is the color.