12 {
13 auto *e = ctx.mEngine.get();
14 e->get_ready();
15
16 e->timings.master_speed = 0.005;
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;
23
24 e->calculate_oscillators(e->timings);
25
26 for (
int x = 0;
x < e->num_x;
x++) {
27 for (
int y = 0;
y < e->num_y;
y++) {
28
29 e->animation.dist = e->distance[
x][
y];
30 e->animation.angle = e->polar_theta[
x][
y];
31 e->animation.z = 5;
32 e->animation.scale_x = 0.09;
33 e->animation.scale_y = 0.09;
34 e->animation.offset_y = -30 * e->move.linear[0];
35 e->animation.offset_z = 0;
36 e->animation.offset_x = 0;
37 e->animation.low_limit = -1;
38 e->show1 = e->render_value(e->animation);
39
40 e->animation.dist = e->distance[
x][
y];
41 e->animation.angle = e->polar_theta[
x][
y];
42 e->animation.z = 50;
43 e->animation.scale_x = 0.09;
44 e->animation.scale_y = 0.09;
45 e->animation.offset_y = -30 * e->move.linear[1];
46 e->animation.offset_z = 0;
47 e->animation.offset_x = 0;
48 e->animation.low_limit = -1;
49 e->show2 = e->render_value(e->animation);
50
51 e->animation.dist = e->distance[
x][
y];
52 e->animation.angle = e->polar_theta[
x][
y] + 2 + (e->show1 / 255) *
PI;
53 e->animation.z = 5;
54 e->animation.scale_x = 0.09;
55 e->animation.scale_y = 0.09;
56 e->animation.offset_y = -10 * e->move.linear[0];
57 e->animation.offset_z = 0;
58 e->animation.offset_x = 0;
59 e->animation.low_limit = 0;
60 e->show3 = e->render_value(e->animation);
61
62 e->animation.dist = e->distance[
x][
y];
63 e->animation.angle = e->polar_theta[
x][
y] + 2 + (e->show2 / 255) *
PI;
64 ;
65 e->animation.z = 5;
66 e->animation.scale_x = 0.09;
67 e->animation.scale_y = 0.09;
68 e->animation.offset_y = -20 * e->move.linear[0];
69 e->animation.offset_z = 0;
70 e->animation.offset_x = 0;
71 e->animation.low_limit = 0;
72 e->show4 = e->render_value(e->animation);
73
74 e->show5 = e->screen(e->show4, e->show3);
75 e->show6 = e->colordodge(e->show5, e->show3);
76
77 float linear1 =
y / 32.f;
78 float linear2 = (32 -
y) / 32.f;
79
80 e->pixel.red = e->show5 * linear1;
81 e->pixel.green = 0;
82 e->pixel.blue = e->show6 * linear2;
83
84 e->pixel = e->rgb_sanity_check(e->pixel);
85
86 e->setPixelColorInternal(
x,
y, e->pixel);
87 }
88 }
89}