15 e->timings.master_speed = 0.001;
16 e->timings.ratio[0] = 0.025;
17 e->timings.ratio[1] = 0.027;
18 e->timings.ratio[2] = 0.031;
19 e->timings.ratio[3] = 0.033;
20 e->timings.ratio[4] = 0.037;
21 e->timings.ratio[5] = 0.038;
22 e->timings.ratio[5] = 0.041;
24 e->calculate_oscillators(e->timings);
26 float size = 0.4 + e->move.directional[0] * 0.1;
30 for (
int x = 0;
x < e->num_x;
x++) {
31 for (
int y = 0;
y < e->num_y;
y++) {
33 e->animation.dist = e->distance[
x][
y];
35 5 * e->polar_theta[
x][
y] + 10 * e->move.radial[0] +
36 e->animation.dist / (((e->move.directional[0] + 3) * 2)) +
37 e->move.noise_angle[0] * q;
39 e->animation.scale_x = 0.08 * size * (e->move.directional[0] + 1.5);
40 e->animation.scale_y = 0.07 * size;
41 e->animation.offset_z = -10 * e->move.linear[0];
42 e->animation.offset_x = -30 * e->move.linear[0];
43 e->animation.offset_y = 0;
44 e->animation.low_limit = 0;
45 e->show1 = e->render_value(e->animation);
47 e->animation.dist = e->distance[
x][
y];
49 -5 * e->polar_theta[
x][
y] + 10 * e->move.radial[1] +
50 e->animation.dist / (((e->move.directional[1] + 3) * 2)) +
51 e->move.noise_angle[1] * q;
53 e->animation.scale_x = 0.07 * size * (e->move.directional[1] + 1.1);
54 e->animation.scale_y = 0.07 * size * (e->move.directional[2] + 1.3);
56 e->animation.offset_z = -12 * e->move.linear[1];
58 e->animation.offset_x = -(e->num_x - 1) * e->move.linear[1];
59 e->animation.offset_y = 0;
60 e->animation.low_limit = 0;
61 e->show2 = e->render_value(e->animation);
63 e->animation.dist = e->distance[
x][
y];
65 -5 * e->polar_theta[
x][
y] + 12 * e->move.radial[2] +
66 e->animation.dist / (((e->move.directional[3] + 3) * 2)) +
67 e->move.noise_angle[2] * q;
69 e->animation.scale_x = 0.05 * size * (e->move.directional[3] + 1.5);
71 e->animation.scale_y = 0.05 * size * (e->move.directional[4] + 1.5);
73 e->animation.offset_z = -12 * e->move.linear[3];
74 e->animation.offset_x = -40 * e->move.linear[3];
75 e->animation.offset_y = 0;
76 e->animation.low_limit = 0;
77 e->show3 = e->render_value(e->animation);
79 e->animation.dist = e->distance[
x][
y];
81 5 * e->polar_theta[
x][
y] + 12 * e->move.radial[3] +
82 e->animation.dist / (((e->move.directional[5] + 3) * 2)) +
83 e->move.noise_angle[3] * q;
85 e->animation.scale_x = 0.09 * size * (e->move.directional[5] + 1.5);
88 e->animation.scale_y = 0.09 * size * (e->move.directional[6] + 1.5);
91 e->animation.offset_z = 0;
92 e->animation.offset_x = -35 * e->move.linear[3];
93 e->animation.offset_y = 0;
94 e->animation.low_limit = 0;
95 e->show4 = e->render_value(e->animation);
97 e->show5 = e->screen(e->show4, e->show3) - e->show2;
98 e->show6 = e->colordodge(e->show4, e->show1);
100 e->show7 = e->multiply(e->show1, e->show2);
102 float linear1 =
y / 32.f;
104 float radius = e->radial_filter_radius;
105 float radial = (radius - e->distance[
x][
y]) / e->distance[
x][
y];
107 e->show7 = e->multiply(e->show1, e->show2) * linear1 * 2;
108 e->show8 = e->subtract(e->show7, e->show5);
110 e->pixel.green = 0.2 * e->show8;
111 e->pixel.blue = e->show5 * radial;
112 e->pixel.red = (1 * e->show1 + 1 * e->show2) - e->show7 / 2;
114 e->pixel = e->rgb_sanity_check(e->pixel);
116 e->setPixelColorInternal(
x,
y, e->pixel);
131 const fl::u8 *perm = PERLIN_NOISE;
133 e->timings.master_speed = 0.001;
134 e->timings.ratio[0] = 0.025;
135 e->timings.ratio[1] = 0.027;
136 e->timings.ratio[2] = 0.031;
137 e->timings.ratio[3] = 0.033;
138 e->timings.ratio[4] = 0.037;
139 e->timings.ratio[5] = 0.038;
140 e->timings.ratio[5] = 0.041;
142 e->calculate_oscillators(e->timings);
144 float size = 0.4 + e->move.directional[0] * 0.1;
148 for (
int x = 0;
x < e->num_x;
x++) {
149 for (
int y = 0;
y < e->num_y;
y++) {
151 e->animation.dist = e->distance[
x][
y];
153 5 * e->polar_theta[
x][
y] + 10 * e->move.radial[0] +
154 e->animation.dist / (((e->move.directional[0] + 3) * 2)) +
155 e->move.noise_angle[0] * q;
157 e->animation.scale_x = 0.08 * size * (e->move.directional[0] + 1.5);
158 e->animation.scale_y = 0.07 * size;
159 e->animation.offset_z = -10 * e->move.linear[0];
160 e->animation.offset_x = -30 * e->move.linear[0];
161 e->animation.offset_y = 0;
162 e->animation.low_limit = 0;
165 e->animation.dist = e->distance[
x][
y];
167 -5 * e->polar_theta[
x][
y] + 10 * e->move.radial[1] +
168 e->animation.dist / (((e->move.directional[1] + 3) * 2)) +
169 e->move.noise_angle[1] * q;
170 e->animation.z = 500;
171 e->animation.scale_x = 0.07 * size * (e->move.directional[1] + 1.1);
172 e->animation.scale_y = 0.07 * size * (e->move.directional[2] + 1.3);
174 e->animation.offset_z = -12 * e->move.linear[1];
176 e->animation.offset_x = -(e->num_x - 1) * e->move.linear[1];
177 e->animation.offset_y = 0;
178 e->animation.low_limit = 0;
181 e->animation.dist = e->distance[
x][
y];
183 -5 * e->polar_theta[
x][
y] + 12 * e->move.radial[2] +
184 e->animation.dist / (((e->move.directional[3] + 3) * 2)) +
185 e->move.noise_angle[2] * q;
186 e->animation.z = 500;
187 e->animation.scale_x = 0.05 * size * (e->move.directional[3] + 1.5);
189 e->animation.scale_y = 0.05 * size * (e->move.directional[4] + 1.5);
191 e->animation.offset_z = -12 * e->move.linear[3];
192 e->animation.offset_x = -40 * e->move.linear[3];
193 e->animation.offset_y = 0;
194 e->animation.low_limit = 0;
197 e->animation.dist = e->distance[
x][
y];
199 5 * e->polar_theta[
x][
y] + 12 * e->move.radial[3] +
200 e->animation.dist / (((e->move.directional[5] + 3) * 2)) +
201 e->move.noise_angle[3] * q;
202 e->animation.z = 500;
203 e->animation.scale_x = 0.09 * size * (e->move.directional[5] + 1.5);
206 e->animation.scale_y = 0.09 * size * (e->move.directional[6] + 1.5);
209 e->animation.offset_z = 0;
210 e->animation.offset_x = -35 * e->move.linear[3];
211 e->animation.offset_y = 0;
212 e->animation.low_limit = 0;
215 e->show5 = e->screen(e->show4, e->show3) - e->show2;
216 e->show6 = e->colordodge(e->show4, e->show1);
218 e->show7 = e->multiply(e->show1, e->show2);
220 float linear1 =
y / 32.f;
222 float radius = e->radial_filter_radius;
223 float radial = (radius - e->distance[
x][
y]) / e->distance[
x][
y];
225 e->show7 = e->multiply(e->show1, e->show2) * linear1 * 2;
226 e->show8 = e->subtract(e->show7, e->show5);
228 e->pixel.green = 0.2 * e->show8;
229 e->pixel.blue = e->show5 * radial;
230 e->pixel.red = (1 * e->show1 + 1 * e->show2) - e->show7 / 2;
232 e->pixel = e->rgb_sanity_check(e->pixel);
234 e->setPixelColorInternal(
x,
y, e->pixel);
fl::unique_ptr< Engine > mEngine