15 e->timings.master_speed = 0.009;
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.0053;
20 e->timings.ratio[4] = 0.0056;
21 e->timings.ratio[5] = 0.0059;
23 e->calculate_oscillators(e->timings);
25 for (
int x = 0;
x < e->num_x;
x++) {
26 for (
int y = 0;
y < e->num_y;
y++) {
28 e->animation.dist = e->distance[
x][
y];
29 e->animation.angle = 5 * e->polar_theta[
x][
y] + 10 * e->move.radial[0] +
30 e->animation.dist / 2;
32 e->animation.scale_x = 0.07;
33 e->animation.scale_y = 0.07;
34 e->animation.offset_z = 0;
35 e->animation.offset_x = -30 * e->move.linear[0];
36 e->animation.offset_y = 0;
37 e->animation.low_limit = 0;
38 e->show1 = e->render_value(e->animation);
40 e->animation.dist = e->distance[
x][
y];
41 e->animation.angle = -5 * e->polar_theta[
x][
y] + 12 * e->move.radial[1] +
42 e->animation.dist / 2;
44 e->animation.scale_x = 0.07;
45 e->animation.scale_y = 0.07;
46 e->animation.offset_z = 0;
47 e->animation.offset_x = -30 * e->move.linear[1];
48 e->animation.offset_y = 0;
49 e->animation.low_limit = 0;
50 e->show2 = e->render_value(e->animation);
52 e->animation.dist = e->distance[
x][
y];
53 e->animation.angle = -5 * e->polar_theta[
x][
y] + 12 * e->move.radial[2] +
54 e->animation.dist / 2;
56 e->animation.scale_x = 0.05;
57 e->animation.scale_y = 0.05;
58 e->animation.offset_z = 0;
59 e->animation.offset_x = -40 * e->move.linear[2];
60 e->animation.offset_y = 0;
61 e->animation.low_limit = 0;
62 e->show3 = e->render_value(e->animation);
64 e->animation.dist = e->distance[
x][
y];
65 e->animation.angle = 5 * e->polar_theta[
x][
y] + 12 * e->move.radial[3] +
66 e->animation.dist / 2;
68 e->animation.scale_x = 0.09;
69 e->animation.scale_y = 0.09;
70 e->animation.offset_z = 0;
71 e->animation.offset_x = -35 * e->move.linear[3];
72 e->animation.offset_y = 0;
73 e->animation.low_limit = 0;
74 e->show4 = e->render_value(e->animation);
76 e->show5 = e->screen(e->show4, e->show3);
77 e->show6 = e->colordodge(e->show2, e->show3);
79 float radius = e->radial_filter_radius;
80 float radial = (radius - e->distance[
x][
y]) / e->distance[
x][
y];
82 e->pixel.red = radial * (e->show1 + e->show2);
83 e->pixel.green = 0.3 * radial * e->show6;
84 e->pixel.blue = radial * e->show5;
86 e->pixel = e->rgb_sanity_check(e->pixel);
88 e->setPixelColorInternal(
x,
y, e->pixel);
103 const fl::u8 *perm = PERLIN_NOISE;
105 e->timings.master_speed = 0.009;
106 e->timings.ratio[0] = 0.025;
107 e->timings.ratio[1] = 0.027;
108 e->timings.ratio[2] = 0.031;
109 e->timings.ratio[3] = 0.0053;
110 e->timings.ratio[4] = 0.0056;
111 e->timings.ratio[5] = 0.0059;
113 e->calculate_oscillators(e->timings);
115 for (
int x = 0;
x < e->num_x;
x++) {
116 for (
int y = 0;
y < e->num_y;
y++) {
118 e->animation.dist = e->distance[
x][
y];
119 e->animation.angle = 5 * e->polar_theta[
x][
y] + 10 * e->move.radial[0] +
120 e->animation.dist / 2;
122 e->animation.scale_x = 0.07;
123 e->animation.scale_y = 0.07;
124 e->animation.offset_z = 0;
125 e->animation.offset_x = -30 * e->move.linear[0];
126 e->animation.offset_y = 0;
127 e->animation.low_limit = 0;
130 e->animation.dist = e->distance[
x][
y];
131 e->animation.angle = -5 * e->polar_theta[
x][
y] + 12 * e->move.radial[1] +
132 e->animation.dist / 2;
133 e->animation.z = 500;
134 e->animation.scale_x = 0.07;
135 e->animation.scale_y = 0.07;
136 e->animation.offset_z = 0;
137 e->animation.offset_x = -30 * e->move.linear[1];
138 e->animation.offset_y = 0;
139 e->animation.low_limit = 0;
142 e->animation.dist = e->distance[
x][
y];
143 e->animation.angle = -5 * e->polar_theta[
x][
y] + 12 * e->move.radial[2] +
144 e->animation.dist / 2;
145 e->animation.z = 500;
146 e->animation.scale_x = 0.05;
147 e->animation.scale_y = 0.05;
148 e->animation.offset_z = 0;
149 e->animation.offset_x = -40 * e->move.linear[2];
150 e->animation.offset_y = 0;
151 e->animation.low_limit = 0;
154 e->animation.dist = e->distance[
x][
y];
155 e->animation.angle = 5 * e->polar_theta[
x][
y] + 12 * e->move.radial[3] +
156 e->animation.dist / 2;
157 e->animation.z = 500;
158 e->animation.scale_x = 0.09;
159 e->animation.scale_y = 0.09;
160 e->animation.offset_z = 0;
161 e->animation.offset_x = -35 * e->move.linear[3];
162 e->animation.offset_y = 0;
163 e->animation.low_limit = 0;
166 e->show5 = e->screen(e->show4, e->show3);
167 e->show6 = e->colordodge(e->show2, e->show3);
169 float radius = e->radial_filter_radius;
170 float radial = (radius - e->distance[
x][
y]) / e->distance[
x][
y];
172 e->pixel.red = radial * (e->show1 + e->show2);
173 e->pixel.green = 0.3 * radial * e->show6;
174 e->pixel.blue = radial * e->show5;
176 e->pixel = e->rgb_sanity_check(e->pixel);
178 e->setPixelColorInternal(
x,
y, e->pixel);
fl::unique_ptr< Engine > mEngine