13 auto *e = ctx.mEngine.get();
16 e->timings.master_speed = 0.006;
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.0053;
21 e->timings.ratio[4] = 0.0056;
22 e->timings.ratio[5] = 0.0059;
24 e->calculate_oscillators(e->timings);
26 for (
int x = 0;
x < e->num_x;
x++) {
27 for (
int y = 0;
y < e->num_y;
y++) {
31 e->animation.dist = e->distance[
x][
y];
32 e->animation.angle = e->polar_theta[
x][
y];
34 e->animation.scale_x = 0.09 *
scale;
35 e->animation.scale_y = 0.09 *
scale;
36 e->animation.offset_y = -30 * e->move.linear[0];
37 e->animation.offset_z = 0;
38 e->animation.offset_x = 0;
39 e->animation.low_limit = -1;
40 e->show1 = e->render_value(e->animation);
42 e->animation.dist = e->distance[
x][
y];
43 e->animation.angle = e->polar_theta[
x][
y];
45 e->animation.scale_x = 0.09 *
scale;
46 e->animation.scale_y = 0.09 *
scale;
47 e->animation.offset_y = -30 * e->move.linear[1];
48 e->animation.offset_z = 0;
49 e->animation.offset_x = 0;
50 e->animation.low_limit = -1;
51 e->show2 = e->render_value(e->animation);
53 e->animation.dist = e->distance[
x][
y];
54 e->animation.angle = e->polar_theta[
x][
y] + 2 + (e->show1 / 255) *
PI;
56 e->animation.scale_x = 0.09 *
scale;
57 e->animation.scale_y = 0.09 *
scale;
58 e->animation.offset_y = -10 * e->move.linear[0];
59 e->animation.offset_z = 0;
60 e->animation.offset_x = 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 = e->polar_theta[
x][
y] + 2 + (e->show2 / 255) *
PI;
68 e->animation.scale_x = 0.09 *
scale;
69 e->animation.scale_y = 0.09 *
scale;
70 e->animation.offset_y = -20 * e->move.linear[0];
71 e->animation.offset_z = 0;
72 e->animation.offset_x = 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->show5, e->show3);
79 e->pixel.red = (e->show5 + e->show6) / 2;
80 e->pixel.green = (e->show5 - 50) + (e->show6 / 16);
83 e->pixel = e->rgb_sanity_check(e->pixel);
85 e->setPixelColorInternal(
x,
y, e->pixel);
96 auto *e = ctx.mEngine.get();
100 const fl::u8 *perm = PERLIN_NOISE;
102 e->timings.master_speed = 0.006;
103 e->timings.ratio[0] = 0.025;
104 e->timings.ratio[1] = 0.027;
105 e->timings.ratio[2] = 0.031;
106 e->timings.ratio[3] = 0.0053;
107 e->timings.ratio[4] = 0.0056;
108 e->timings.ratio[5] = 0.0059;
110 e->calculate_oscillators(e->timings);
112 for (
int x = 0;
x < e->num_x;
x++) {
113 for (
int y = 0;
y < e->num_y;
y++) {
117 e->animation.dist = e->distance[
x][
y];
118 e->animation.angle = e->polar_theta[
x][
y];
120 e->animation.scale_x = 0.09 *
scale;
121 e->animation.scale_y = 0.09 *
scale;
122 e->animation.offset_y = -30 * e->move.linear[0];
123 e->animation.offset_z = 0;
124 e->animation.offset_x = 0;
125 e->animation.low_limit = -1;
128 e->animation.dist = e->distance[
x][
y];
129 e->animation.angle = e->polar_theta[
x][
y];
131 e->animation.scale_x = 0.09 *
scale;
132 e->animation.scale_y = 0.09 *
scale;
133 e->animation.offset_y = -30 * e->move.linear[1];
134 e->animation.offset_z = 0;
135 e->animation.offset_x = 0;
136 e->animation.low_limit = -1;
139 e->animation.dist = e->distance[
x][
y];
140 e->animation.angle = e->polar_theta[
x][
y] + 2 + (e->show1 / 255) *
PI;
142 e->animation.scale_x = 0.09 *
scale;
143 e->animation.scale_y = 0.09 *
scale;
144 e->animation.offset_y = -10 * e->move.linear[0];
145 e->animation.offset_z = 0;
146 e->animation.offset_x = 0;
147 e->animation.low_limit = 0;
150 e->animation.dist = e->distance[
x][
y];
151 e->animation.angle = e->polar_theta[
x][
y] + 2 + (e->show2 / 255) *
PI;
154 e->animation.scale_x = 0.09 *
scale;
155 e->animation.scale_y = 0.09 *
scale;
156 e->animation.offset_y = -20 * e->move.linear[0];
157 e->animation.offset_z = 0;
158 e->animation.offset_x = 0;
159 e->animation.low_limit = 0;
162 e->show5 = e->screen(e->show4, e->show3);
163 e->show6 = e->colordodge(e->show5, e->show3);
165 e->pixel.red = (e->show5 + e->show6) / 2;
166 e->pixel.green = (e->show5 - 50) + (e->show6 / 16);
169 e->pixel = e->rgb_sanity_check(e->pixel);
171 e->setPixelColorInternal(
x,
y, e->pixel);