diff --git a/src/fart/Engine.cpp b/src/fart/Engine.cpp index 9050d48..5ab7477 100644 --- a/src/fart/Engine.cpp +++ b/src/fart/Engine.cpp @@ -66,5 +66,19 @@ int Engine::run(string_view input_file, opt output_file) options.merge(scene->options); options.apply_defaults(); + Image image(*options.width, *options.height); + for (size_t y = 0u; y < *options.height; y++) + { + for (size_t x = 0u; x < *options.width; x++) + { + image[x, y] = *options.background; + } + } + + if (!image_writer->write(image)) + { + return 1; + } + return 0; }