blob: 5ddbaf6bf509e2435ff4df5208098e090ebe3606 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <string>
#include <utility>
#include <functional>
namespace imgen {
using color = std::tuple<std::uint8_t, std::uint8_t, std::uint8_t>;
void write_ppm(
const std::string& path,
const std::size_t sizeX,
const std::size_t sizeY,
std::function<color(std::size_t, std::size_t)> generator
);
}
|