You could create a black&white mask for any color you want in Photoshop or Gimp and then use that mask to manipulate your texture. Your example texture does just that actually. It has 4 different masks in a single texture’s R,G , B and Alpha channels.