Example #1
0
void drawCow(Console & console, const Coordinates2d<size_t> startCoordinates,
             const PixelImage & image)
{
    for (size_t y = 0; y < image.Height(); ++ y) {
        for (size_t x = 0; x < image.Width(); ++ x) {
            const auto pixel = image.GetPixel(x, y);
            //std::cout << "(" << (int) pixel.Red << ", "
            //    << (int) pixel.Green << ", " << (int) pixel.Blue << ")\n";
            console.PSet(startCoordinates.X + x, startCoordinates.Y + y, pixel);
        }
    }
}