11 {
12 auto *e = ctx.mEngine.get();
13 e->get_ready();
14
15 e->timings.master_speed = 0.031;
16 e->timings.ratio[0] = 0.0025;
17 e->timings.ratio[1] = 0.0027;
18 e->timings.ratio[2] = 0.029;
19 e->timings.ratio[3] = 0.33;
20 e->timings.ratio[4] = 0.036;
21
22 e->calculate_oscillators(e->timings);
23
24 for (
int x = 0;
x < e->num_x;
x++) {
25 for (
int y = 0;
y < e->num_y;
y++) {
26
27 float s = 1.5;
28
29 e->animation.dist = e->distance[
x][
y] +
30 fl::sinf(0.5 * e->distance[
x][
y] - e->move.radial[3]);
31 e->animation.angle = e->polar_theta[
x][
y];
32 e->animation.z = 5;
33 e->animation.scale_x = 0.1 * s;
34 e->animation.scale_y = 0.1 * s;
35 e->animation.offset_z = 0.1 * e->move.linear[0];
36 e->animation.offset_y = -20 * e->move.linear[0];
37 e->animation.offset_x = 10;
38 e->animation.low_limit = 0;
39 e->show1 = e->render_value(e->animation);
40
41 e->pixel.red = e->show1;
42 e->pixel.green = 0;
43 e->pixel.blue = 0;
44
45 e->pixel = e->rgb_sanity_check(e->pixel);
46
47 e->setPixelColorInternal(
x,
y, e->pixel);
48 }
49 }
50}
float sinf(float value) FL_NOEXCEPT