13 auto *e = ctx.mEngine.get();
16 e->timings.master_speed = 0.005;
20 e->timings.ratio[0] = 0.01;
21 e->timings.ratio[1] = 0.011;
22 e->timings.ratio[2] = 0.029;
23 e->timings.ratio[3] = 0.33 * w;
24 e->timings.ratio[4] = 0.36 * w;
26 e->calculate_oscillators(e->timings);
28 for (
int x = 0;
x < e->num_x;
x++) {
29 for (
int y = 0;
y < e->num_y;
y++) {
34 2 + e->distance[
x][
y] +
35 2 *
fl::sinf(0.25 * e->distance[
x][
y] - e->move.radial[3]);
36 e->animation.angle = e->polar_theta[
x][
y];
38 e->animation.scale_x = 0.1 * s;
39 e->animation.scale_y = 0.1 * s;
40 e->animation.offset_z = 10 * e->move.linear[0];
41 e->animation.offset_y = -20 * e->move.linear[0];
42 e->animation.offset_x = 10;
43 e->animation.low_limit = 0;
44 e->show1 = e->render_value(e->animation);
47 2 + e->distance[
x][
y] +
48 2 *
fl::sinf(0.24 * e->distance[
x][
y] - e->move.radial[4]);
49 e->animation.angle = e->polar_theta[
x][
y];
51 e->animation.scale_x = 0.1 * s;
52 e->animation.scale_y = 0.1 * s;
53 e->animation.offset_z = 0.1 * e->move.linear[1];
54 e->animation.offset_y = -20 * e->move.linear[1];
55 e->animation.offset_x = 10;
56 e->animation.low_limit = 0;
57 e->show2 = e->render_value(e->animation);
59 e->pixel.red = (e->show1 + e->show2);
60 e->pixel.green = ((e->show1 + e->show2) * 0.6) - 50;
63 e->pixel = e->rgb_sanity_check(e->pixel);
65 e->setPixelColorInternal(
x,
y, e->pixel);
76 auto *e = ctx.mEngine.get();
80 const fl::u8 *perm = PERLIN_NOISE;
82 e->timings.master_speed = 0.005;
86 e->timings.ratio[0] = 0.01;
87 e->timings.ratio[1] = 0.011;
88 e->timings.ratio[2] = 0.029;
89 e->timings.ratio[3] = 0.33 * w;
90 e->timings.ratio[4] = 0.36 * w;
92 e->calculate_oscillators(e->timings);
94 for (
int x = 0;
x < e->num_x;
x++) {
95 for (
int y = 0;
y < e->num_y;
y++) {
100 2 + e->distance[
x][
y] +
101 2 *
fl::sinf(0.25 * e->distance[
x][
y] - e->move.radial[3]);
102 e->animation.angle = e->polar_theta[
x][
y];
104 e->animation.scale_x = 0.1 * s;
105 e->animation.scale_y = 0.1 * s;
106 e->animation.offset_z = 10 * e->move.linear[0];
107 e->animation.offset_y = -20 * e->move.linear[0];
108 e->animation.offset_x = 10;
109 e->animation.low_limit = 0;
113 2 + e->distance[
x][
y] +
114 2 *
fl::sinf(0.24 * e->distance[
x][
y] - e->move.radial[4]);
115 e->animation.angle = e->polar_theta[
x][
y];
117 e->animation.scale_x = 0.1 * s;
118 e->animation.scale_y = 0.1 * s;
119 e->animation.offset_z = 0.1 * e->move.linear[1];
120 e->animation.offset_y = -20 * e->move.linear[1];
121 e->animation.offset_x = 10;
122 e->animation.low_limit = 0;
125 e->pixel.red = (e->show1 + e->show2);
126 e->pixel.green = ((e->show1 + e->show2) * 0.6) - 50;
129 e->pixel = e->rgb_sanity_check(e->pixel);
131 e->setPixelColorInternal(
x,
y, e->pixel);