70 {
71 auto *e = ctx.mEngine.get();
72 e->get_ready();
75 const fl::u8 *perm = PERLIN_NOISE;
76
77 e->timings.master_speed = 0.02;
78 e->timings.ratio[0] = 0.0025;
79 e->timings.ratio[1] = 0.0027;
80 e->timings.ratio[2] = 0.0031;
81 e->timings.ratio[3] = 0.0033;
82 e->timings.ratio[4] = 0.0036;
83 e->timings.ratio[5] = 0.0039;
84
85 e->calculate_oscillators(e->timings);
86
87 for (
int x = 0;
x < e->num_x;
x++) {
88 for (
int y = 0;
y < e->num_y;
y++) {
89 e->animation.dist = e->distance[
x][
y] + e->move.noise_angle[4];
90 e->animation.angle = e->polar_theta[
x][
y] + e->move.radial[0] +
91 e->move.noise_angle[0] + e->move.noise_angle[3] +
92 e->move.noise_angle[1];
93 e->animation.z = 3 +
fl::sqrtf(e->animation.dist);
94 e->animation.scale_x = 0.1;
95 e->animation.scale_y = 0.1;
96 e->animation.offset_z = 10;
97 e->animation.offset_x = 50 * e->move.linear[0];
99
100 e->animation.angle = e->polar_theta[
x][
y] + e->move.radial[1] +
101 e->move.noise_angle[1] + e->move.noise_angle[4] +
102 e->move.noise_angle[2];
103 e->animation.offset_x = 50 * e->move.linear[1];
104 e->animation.offset_z = 100;
106
107 e->animation.angle = e->polar_theta[
x][
y] + e->move.radial[2] +
108 e->move.noise_angle[2] + e->move.noise_angle[5] +
109 e->move.noise_angle[3];
110 e->animation.offset_x = 50 * e->move.linear[2];
111 e->animation.offset_z = 300;
113
114 float radius = 23;
115 float radial = (radius - e->distance[
x][
y]) / e->distance[
x][
y];
116
117 e->pixel.red = radial * (show1 + show3) * 0.5 * e->animation.dist / 5;
118 e->pixel.green = radial * (show2 + show1) * 0.5 *
y / 15;
119 e->pixel.blue = radial * (show3 + show2) * 0.5 *
x / 15;
120
121 e->pixel = e->rgb_sanity_check(e->pixel);
122 e->setPixelColorInternal(
x,
y, e->pixel);
123 }
124 }
125}
T * assume_aligned(T *ptr) FL_NOEXCEPT
float sqrtf(float value) FL_NOEXCEPT
FASTLED_FORCE_INLINE fl::i32 render_value_fp_from_float(const render_parameters &anim, const fl::i32 *fade_lut, const fl::u8 *perm)