#pragma once #include "core/effect.hpp" namespace effector { // Lays the image over itself again and again, each copy zoomed, turned and // drifted a little further and fading as it goes, like a camera filming its // own monitor. // A pure transform: it needs no source images, and leading a chain with // sources loaded it starts from a crop of a randomly chosen one. class FeedbackEffect : public Effect { public: std::string name() const override { return "feedback"; } std::string title() const override { return "Feedback"; } std::string description() const override { return "Lays the image over itself again and again, each copy zoomed, turned and drifted " "further and fading, like a camera filming its own monitor."; } const std::vector& params() const override; bool needsSources() const override { return false; } Image render(const std::vector& sources, int width, int height, Rng& rng, const ParamValues& values) const override; }; } // namespace effector