13 auto *e = ctx.mEngine.get();
16 e->run_default_oscillators();
17 e->timings.master_speed = 0.00005;
18 e->calculate_oscillators(e->timings);
20 for (
int x = 0;
x < e->num_x;
x++) {
21 for (
int y = 0;
y < e->num_y;
y++) {
23 fl::sqrtf(e->distance[
x][
y]) * 0.7 * (e->move.directional[0] + 1.5);
25 e->polar_theta[
x][
y] - e->move.radial[0] + e->distance[
x][
y] / 5;
27 e->animation.scale_x = 0.11;
28 e->animation.scale_y = 0.11;
30 e->animation.offset_y = -50 * e->move.linear[0];
31 e->animation.offset_x = 0;
32 e->animation.offset_z = 0;
34 e->animation.z = e->move.linear[0];
35 e->animation.low_limit = -0.1;
36 e->animation.high_limit = 1;
37 float show1 = e->render_value(e->animation);
39 e->animation.dist = e->animation.dist * 1.1;
40 e->animation.angle += e->move.noise_angle[0] / 10;
41 float show2 = e->render_value(e->animation);
43 e->animation.dist = e->animation.dist * 1.1;
44 e->animation.angle += e->move.noise_angle[1] / 10;
45 float show3 = e->render_value(e->animation);
47 float radius = e->radial_filter_radius;
48 float radial = (radius - e->distance[
x][
y]) / e->distance[
x][
y];
50 e->pixel.red = radial * show1;
51 e->pixel.green = radial * (show1 - show2) / 6;
52 e->pixel.blue = radial * (show1 - show3) / 5;
54 e->pixel = e->rgb_sanity_check(e->pixel);
55 e->setPixelColorInternal(
x,
y, e->pixel);
66 auto *e = ctx.mEngine.get();
70 const fl::u8 *perm = PERLIN_NOISE;
72 e->run_default_oscillators();
73 e->timings.master_speed = 0.00005;
74 e->calculate_oscillators(e->timings);
76 for (
int x = 0;
x < e->num_x;
x++) {
77 for (
int y = 0;
y < e->num_y;
y++) {
79 fl::sqrtf(e->distance[
x][
y]) * 0.7 * (e->move.directional[0] + 1.5);
81 e->polar_theta[
x][
y] - e->move.radial[0] + e->distance[
x][
y] / 5;
83 e->animation.scale_x = 0.11;
84 e->animation.scale_y = 0.11;
86 e->animation.offset_y = -50 * e->move.linear[0];
87 e->animation.offset_x = 0;
88 e->animation.offset_z = 0;
90 e->animation.z = e->move.linear[0];
91 e->animation.low_limit = -0.1;
92 e->animation.high_limit = 1;
95 e->animation.dist = e->animation.dist * 1.1;
96 e->animation.angle += e->move.noise_angle[0] / 10;
99 e->animation.dist = e->animation.dist * 1.1;
100 e->animation.angle += e->move.noise_angle[1] / 10;
103 float radius = e->radial_filter_radius;
104 float radial = (radius - e->distance[
x][
y]) / e->distance[
x][
y];
106 e->pixel.red = radial * show1;
107 e->pixel.green = radial * (show1 - show2) / 6;
108 e->pixel.blue = radial * (show1 - show3) / 5;
110 e->pixel = e->rgb_sanity_check(e->pixel);
111 e->setPixelColorInternal(
x,
y, e->pixel);