Changing tile modulates with code

Godot Version

4.2

Question

Is there a way to change the modulate of a single tile in a tilemap with code. I’m working on a game and I need a way to change the modulate of tiles on the fly without making a bunch of preset tiles. Thanks!