Using GetPixel to instantiate blocks of different pixel colors

Code help needed please!

I instantiate cube prefabs that have a colorful texture, i want to use material.SetTextureScale to zoom the entire texture to one pixel, and then use GetPixel to offset the material color to different pixels for different cubes.

is it possible with this instantiation? please help me with the code!

var bullitPrefab : Transform;
function Update ()

      var bullit = Instantiate(bullitPrefab, transform.Find("spawnPoint").transform.position, Quaternion.identity);
      bullit.rigidbody.AddForce(transform.forward *8000);


P.S. i already tried material.color, material.SetTextureOffset,sharedMaterial.SetTextureOffset, mainTextureOffset, etc to color instances without extra draw calls, they dont work! i get 1024 draw calls.

It’s for procedural graphics(see pics), here’s what i am doing, i simply cant set colors efficiently in unity, it’s taken me hours and days of trying!!! learning very slowly :z
alt text

You could use a vertex colored material, and set each models vertex colors to a specific color, this should let them batch, although may be very slow.