* Determine the colors for a rectangular strip of pixels.
* @return array of colors that will be used to define an image for quick rendering.
*/
public ColorRect getColorRect(int minX, int maxX) {
int ymax = model_.getHeight();
ColorRect colorRect = new ColorRect(maxX-minX, ymax);
for (int x = minX; x < maxX; x++) {
for (int y = 0; y < ymax; y++) {
colorRect.setColor(x-minX, y, renderingModel_.getColorForPosition(x, y));
}
}
return colorRect;
}