/** * File: consts.hh * Copyright (C) 2025 Tyler Triplett * License: GNU GPL 3.0 or later <https://www.gnu.org/licenses/gpl-3.0.html> * * This is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef CONSTS_HH #define CONSTS_HH #include "pch.hh" #include <limits> #include <string> #include <utility> #include <complex> namespace ty { constexpr auto UCMAX = std::numeric_limits<unsigned char>::max(); constexpr double RANGE = 1.5; /// this could be anything really constexpr int ITERLIMIT = 5000; using Setting = std::pair<std::string, std::variant<double*, int*>>; using ColorRange = std::pair<int, int>; using Point = std::complex<double>; class Generator; using fn = std::function<std::shared_ptr<Generator>()>; template <typename Ptr> using BaseT = std::remove_const_t<std::remove_pointer_t<Ptr>>; } /// ty #endif /// CONSTS_HH