title: Rendering a rect-based minimap
body: <p>Cocos2d-iPhone, 1.0.1.</p>
  
  <p>My game has a map. And I have an array containing <code>NSValues</code> (<code>CGRects</code>) that basically represent the collisions in the map. Anyway, what I need is to literally create a texture which is pretty much a grey background with black-filled rectangles representing my rects, and later I'll use this texture to create my minimap.</p>
  
  <p>Anyway, the problem is the texture-creation part. I want to know about this, because creating <code>CCSprites</code> to represent my rectangles is a bit impossible (they're hundreds per map!). I also considered drawing primitives with stuff like <code>CCDrawLine</code> and such, but I'm not so sure about this.</p>
  
  <p>What do you recommend? How would you create a texture?</p>