From 7e60437d3c064bca402d486be967c43bf4326067 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Wed, 3 Sep 2025 23:31:40 +0200 Subject: Initial (with old code) This includes old code too, perhaps from 2021-05-05, judging from the birth timestamp on the directory. The old code included option parsing and equation solving for fancy mutually-dependent options, but no actual rendering (imagine that). --- image.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 image.h (limited to 'image.h') diff --git a/image.h b/image.h new file mode 100644 index 0000000..2d02fae --- /dev/null +++ b/image.h @@ -0,0 +1,18 @@ +#pragma once + +#include +#include +#include + + +struct HistImage { + size_t width, height; + std::vector data; + + HistImage(size_t width, size_t height); + + void add(const HistImage &other); + void render(const char *fname) const; +}; + +// vim: set sw=4 ts=4 noet: -- cgit v1.2.3-70-g09d2