13 auto *e = ctx.mEngine.get();
16 e->timings.master_speed = 0.001;
17 e->timings.ratio[0] = 0.025;
18 e->timings.ratio[1] = 0.027;
19 e->timings.ratio[2] = 0.031;
20 e->timings.ratio[3] = 0.033;
21 e->timings.ratio[4] = 0.037;
22 e->timings.ratio[5] = 0.038;
23 e->timings.ratio[5] = 0.041;
25 e->calculate_oscillators(e->timings);
27 float size = 0.4 + e->move.directional[0] * 0.1;
31 for (
int x = 0;
x < e->num_x;
x++) {
32 for (
int y = 0;
y < e->num_y;
y++) {
34 e->animation.dist = e->distance[
x][
y];
36 5 * e->polar_theta[
x][
y] + 10 * e->move.radial[0] +
37 e->animation.dist / (((e->move.directional[0] + 3) * 2)) +
38 e->move.noise_angle[0] * q;
40 e->animation.scale_x = 0.08 * size * (e->move.directional[0] + 1.5);
41 e->animation.scale_y = 0.07 * size;
42 e->animation.offset_z = -10 * e->move.linear[0];
43 e->animation.offset_x = -30 * e->move.linear[0];
44 e->animation.offset_y = 0;
45 e->animation.low_limit = 0;
46 e->show1 = e->render_value(e->animation);
48 e->animation.dist = e->distance[
x][
y];
50 -5 * e->polar_theta[
x][
y] + 10 * e->move.radial[1] +
51 e->animation.dist / (((e->move.directional[1] + 3) * 2)) +
52 e->move.noise_angle[1] * q;
54 e->animation.scale_x = 0.07 * size * (e->move.directional[1] + 1.1);
55 e->animation.scale_y = 0.07 * size * (e->move.directional[2] + 1.3);
57 e->animation.offset_z = -12 * e->move.linear[1];
59 e->animation.offset_x = -(e->num_x - 1) * e->move.linear[1];
60 e->animation.offset_y = 0;
61 e->animation.low_limit = 0;
62 e->show2 = e->render_value(e->animation);
64 e->animation.dist = e->distance[
x][
y];
66 -5 * e->polar_theta[
x][
y] + 12 * e->move.radial[2] +
67 e->animation.dist / (((e->move.directional[3] + 3) * 2)) +
68 e->move.noise_angle[2] * q;
70 e->animation.scale_x = 0.05 * size * (e->move.directional[3] + 1.5);
72 e->animation.scale_y = 0.05 * size * (e->move.directional[4] + 1.5);
74 e->animation.offset_z = -12 * e->move.linear[3];
75 e->animation.offset_x = -40 * e->move.linear[3];
76 e->animation.offset_y = 0;
77 e->animation.low_limit = 0;
78 e->show3 = e->render_value(e->animation);
80 e->animation.dist = e->distance[
x][
y];
82 5 * e->polar_theta[
x][
y] + 12 * e->move.radial[3] +
83 e->animation.dist / (((e->move.directional[5] + 3) * 2)) +
84 e->move.noise_angle[3] * q;
86 e->animation.scale_x = 0.09 * size * (e->move.directional[5] + 1.5);
89 e->animation.scale_y = 0.09 * size * (e->move.directional[6] + 1.5);
92 e->animation.offset_z = 0;
93 e->animation.offset_x = -35 * e->move.linear[3];
94 e->animation.offset_y = 0;
95 e->animation.low_limit = 0;
96 e->show4 = e->render_value(e->animation);
98 e->show5 = e->screen(e->show4, e->show3) - e->show2;
99 e->show6 = e->colordodge(e->show4, e->show1);
101 e->show7 = e->multiply(e->show1, e->show2);
103 float linear1 =
y / 32.f;
105 float radius = e->radial_filter_radius;
106 float radial = (radius - e->distance[
x][
y]) / e->distance[
x][
y];
108 e->show7 = e->multiply(e->show1, e->show2) * linear1 * 2;
109 e->show8 = e->subtract(e->show7, e->show5);
111 e->pixel.green = 0.2 * e->show8;
112 e->pixel.blue = e->show5 * radial;
113 e->pixel.red = (1 * e->show1 + 1 * e->show2) - e->show7 / 2;
115 e->pixel = e->rgb_sanity_check(e->pixel);
117 e->setPixelColorInternal(
x,
y, e->pixel);
128 auto *e = ctx.mEngine.get();
132 const fl::u8 *perm = PERLIN_NOISE;
134 e->timings.master_speed = 0.001;
135 e->timings.ratio[0] = 0.025;
136 e->timings.ratio[1] = 0.027;
137 e->timings.ratio[2] = 0.031;
138 e->timings.ratio[3] = 0.033;
139 e->timings.ratio[4] = 0.037;
140 e->timings.ratio[5] = 0.038;
141 e->timings.ratio[5] = 0.041;
143 e->calculate_oscillators(e->timings);
145 float size = 0.4 + e->move.directional[0] * 0.1;
149 for (
int x = 0;
x < e->num_x;
x++) {
150 for (
int y = 0;
y < e->num_y;
y++) {
152 e->animation.dist = e->distance[
x][
y];
154 5 * e->polar_theta[
x][
y] + 10 * e->move.radial[0] +
155 e->animation.dist / (((e->move.directional[0] + 3) * 2)) +
156 e->move.noise_angle[0] * q;
158 e->animation.scale_x = 0.08 * size * (e->move.directional[0] + 1.5);
159 e->animation.scale_y = 0.07 * size;
160 e->animation.offset_z = -10 * e->move.linear[0];
161 e->animation.offset_x = -30 * e->move.linear[0];
162 e->animation.offset_y = 0;
163 e->animation.low_limit = 0;
166 e->animation.dist = e->distance[
x][
y];
168 -5 * e->polar_theta[
x][
y] + 10 * e->move.radial[1] +
169 e->animation.dist / (((e->move.directional[1] + 3) * 2)) +
170 e->move.noise_angle[1] * q;
171 e->animation.z = 500;
172 e->animation.scale_x = 0.07 * size * (e->move.directional[1] + 1.1);
173 e->animation.scale_y = 0.07 * size * (e->move.directional[2] + 1.3);
175 e->animation.offset_z = -12 * e->move.linear[1];
177 e->animation.offset_x = -(e->num_x - 1) * e->move.linear[1];
178 e->animation.offset_y = 0;
179 e->animation.low_limit = 0;
182 e->animation.dist = e->distance[
x][
y];
184 -5 * e->polar_theta[
x][
y] + 12 * e->move.radial[2] +
185 e->animation.dist / (((e->move.directional[3] + 3) * 2)) +
186 e->move.noise_angle[2] * q;
187 e->animation.z = 500;
188 e->animation.scale_x = 0.05 * size * (e->move.directional[3] + 1.5);
190 e->animation.scale_y = 0.05 * size * (e->move.directional[4] + 1.5);
192 e->animation.offset_z = -12 * e->move.linear[3];
193 e->animation.offset_x = -40 * e->move.linear[3];
194 e->animation.offset_y = 0;
195 e->animation.low_limit = 0;
198 e->animation.dist = e->distance[
x][
y];
200 5 * e->polar_theta[
x][
y] + 12 * e->move.radial[3] +
201 e->animation.dist / (((e->move.directional[5] + 3) * 2)) +
202 e->move.noise_angle[3] * q;
203 e->animation.z = 500;
204 e->animation.scale_x = 0.09 * size * (e->move.directional[5] + 1.5);
207 e->animation.scale_y = 0.09 * size * (e->move.directional[6] + 1.5);
210 e->animation.offset_z = 0;
211 e->animation.offset_x = -35 * e->move.linear[3];
212 e->animation.offset_y = 0;
213 e->animation.low_limit = 0;
216 e->show5 = e->screen(e->show4, e->show3) - e->show2;
217 e->show6 = e->colordodge(e->show4, e->show1);
219 e->show7 = e->multiply(e->show1, e->show2);
221 float linear1 =
y / 32.f;
223 float radius = e->radial_filter_radius;
224 float radial = (radius - e->distance[
x][
y]) / e->distance[
x][
y];
226 e->show7 = e->multiply(e->show1, e->show2) * linear1 * 2;
227 e->show8 = e->subtract(e->show7, e->show5);
229 e->pixel.green = 0.2 * e->show8;
230 e->pixel.blue = e->show5 * radial;
231 e->pixel.red = (1 * e->show1 + 1 * e->show2) - e->show7 / 2;
233 e->pixel = e->rgb_sanity_check(e->pixel);
235 e->setPixelColorInternal(
x,
y, e->pixel);