From 8797785e9bd3050d02227c43296d2663b125801b Mon Sep 17 00:00:00 2001 From: Madeline Busig Date: Wed, 7 May 2025 02:04:59 -0700 Subject: [PATCH] Add scale to generator --- include/fractal.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/fractal.hpp b/include/fractal.hpp index ee36dbe..097d13b 100644 --- a/include/fractal.hpp +++ b/include/fractal.hpp @@ -256,6 +256,7 @@ class generator_t { bool m_has_ruleset = false; group_id_t m_axiom; + mtl::fixed m_scale = 1; etl::vector m_leaf_buf1; etl::vector m_leaf_buf2; @@ -289,6 +290,8 @@ public: parse_ruleset(ruleset); } + void set_scale(mtl::fixed scale) { m_scale = scale; } + void parse_ruleset(const ruleset_t& ruleset); /**