aboutsummaryrefslogtreecommitdiff
path: root/src/imgen.h
blob: 6954239aadf2a6015dc0914758b3596a5b6c301c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <string>
#include <functional>

#include "color.h"

namespace imgen {

using colored_vector = std::tuple<int, int, color>;

void write_ppm(
	const std::string&                                   path,
	const std::size_t                                    sizeX,
	const std::size_t                                    sizeY,
	std::function<color(std::ptrdiff_t, std::ptrdiff_t)> generator
);

}