Remove debugging output from image writer
This commit is contained in:
parent
f3b829e232
commit
4793f435c9
@ -29,15 +29,9 @@ util::noise::image2d (uint8_t *restrict pixels,
|
|||||||
size_t width,
|
size_t width,
|
||||||
size_t height,
|
size_t height,
|
||||||
const util::noise::fractal &p) {
|
const util::noise::fractal &p) {
|
||||||
util::range<double> r(std::numeric_limits<double>::quiet_NaN (),
|
|
||||||
std::numeric_limits<double>::quiet_NaN ());
|
|
||||||
|
|
||||||
for (size_t y = 0; y < height; ++y)
|
for (size_t y = 0; y < height; ++y)
|
||||||
for (size_t x = 0; x < width; ++x) {
|
for (size_t x = 0; x < width; ++x) {
|
||||||
double v = p.eval (x / double (width), y / double (height));
|
double v = p.eval (x, y);
|
||||||
r.expand (v);
|
|
||||||
pixels[x + y * width] = v * std::numeric_limits<uint8_t>::max ();
|
pixels[x + y * width] = v * std::numeric_limits<uint8_t>::max ();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cerr << r << "\n";
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user