68 this->radial_filter_radius =
fl::min(w, h) * 0.65;
119 fl::u16 idx =
mCtx->xyMapFn(
x,
y,
mCtx->xyMapUserData);
124 return mCtx->xyMapFn(
x,
y,
mCtx->xyMapUserData);
135 ctx.mEngine = fl::make_unique<Engine>(&ctx);
139 ctx.mEngine->init(w, h);
void get_ready(unsigned long &a, unsigned long &b)
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NOEXCEPT
FASTLED_FORCE_INLINE float render_value(render_parameters &animation)
void init(Context &ctx, int w, int h)
float colorburn(float &a, float &b)
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
void render_polar_lookup_table(float cx, float cy, fl::vector< fl::vector< float > > &polar_theta, fl::vector< fl::vector< float > > &distance, int num_x, int num_y)
void setTime(Context &ctx, fl::u32 t)
void logOutput(unsigned long &b)
void calculate_oscillators(oscillators &timings, modulators &move, fl::u32 current_time, float speed_factor)
float screen(float &a, float &b)
void run_default_oscillators(oscillators &timings, modulators &move, fl::u32 current_time, float speed_factor, float master_speed=0.005)
FASTLED_FORCE_INLINE rgb rgb_sanity_check(rgb &pixel)
float subtract(float &a, float &b)
void logFrame(unsigned long &c)
float add(float &a, float &b)
float colordodge(float &a, float &b)
float multiply(float &a, float &b)
Base definition for an LED controller.
#define FASTLED_FORCE_INLINE
fl::optional< fl::u32 > currentTime
fl::unique_ptr< Engine > mEngine
float multiply(float &x, float &y)
float colordodge(float &x, float &y)
void calculate_oscillators(oscillators &t)
float add(float &x, float &y)
FASTLED_FORCE_INLINE rgb rgb_sanity_check(rgb &p)
render_parameters animation
FASTLED_FORCE_INLINE void setPixelColorInternal(int x, int y, rgb pixel)
float colorburn(float &x, float &y)
float subtract(float &x, float &y)
float screen(float &x, float &y)
void setSpeedFactor(float speed)
fl::vector< fl::vector< float > > distance
fl::optional< fl::u32 > currentTime
fl::vector< fl::vector< float > > polar_theta
float radial_filter_radius
void run_default_oscillators(float master_speed=0.005)
FASTLED_FORCE_INLINE float render_value(render_parameters &anim)
FASTLED_FORCE_INLINE fl::u16 xyMap(fl::u16 x, fl::u16 y)