11 {
12 auto *e = ctx.mEngine.get();
13 e->get_ready();
14
15 e->timings.master_speed = 0.02;
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.0033;
20 e->timings.ratio[4] = 0.0036;
21 e->timings.ratio[5] = 0.0039;
22
23 e->calculate_oscillators(e->timings);
24
25 for (
int x = 0;
x < e->num_x;
x++) {
26 for (
int y = 0;
y < e->num_y;
y++) {
27
28 e->animation.dist = e->distance[
x][
y];
29 e->animation.angle = e->polar_theta[
x][
y];
30 e->animation.z = 5;
31 e->animation.scale_x = 0.09;
32 e->animation.scale_y = 0.09;
33 e->animation.offset_z = 0;
34 e->animation.offset_x = 0;
35 e->animation.offset_y = -20 * e->move.linear[0];
36 ;
37 e->animation.low_limit = 0;
38 e->animation.high_limit = 1;
39 e->show1 = e->render_value(e->animation);
40
41 e->animation.dist = e->distance[
x][
y];
42 e->animation.angle = e->polar_theta[
x][
y];
43 e->animation.z = 500;
44 e->animation.scale_x = 0.09;
45 e->animation.scale_y = 0.09;
46 e->animation.offset_z = 0;
47 e->animation.offset_x = 0;
48 e->animation.offset_y = -40 * e->move.linear[0];
49 ;
50 e->animation.low_limit = 0;
51 e->animation.high_limit = 1;
52 e->show2 = e->render_value(e->animation);
53
54 e->pixel.red = e->add(e->show2, e->show1);
55 e->pixel.green = 0;
56 e->pixel.blue = e->colordodge(e->show2, e->show1);
57
58 e->pixel = e->rgb_sanity_check(e->pixel);
59
60 e->setPixelColorInternal(
x,
y, e->pixel);
61 }
62 }
63}