Terrain coloring

Is there a way to color a terrain from a script? I mean to ask if there is a way to set x,y coordinate on a terrain a certain texture. I couldn’t find this in the unity scripting API.

Check the terrain data documentation on alpha maps.

There is an example in the forum, too.

And a similar question…