15 e->timings.master_speed = 0.02;
16 e->timings.ratio[0] = 0.0025;
17 e->timings.ratio[1] = 0.0027;
18 e->timings.ratio[2] = 0.0031;
19 e->timings.ratio[3] = 0.0033;
20 e->timings.ratio[4] = 0.0036;
21 e->timings.ratio[5] = 0.0039;
23 e->calculate_oscillators(e->timings);
25 for (
int x = 0;
x < e->num_x;
x++) {
26 for (
int y = 0;
y < e->num_y;
y++) {
27 e->animation.dist = e->distance[
x][
y];
28 e->animation.angle = 5 * e->polar_theta[
x][
y] +
29 5 * e->move.noise_angle[0] +
30 e->animation.dist * 0.1;
32 e->animation.scale_x = 0.05;
33 e->animation.scale_y = 0.05;
34 e->animation.offset_z = 50 * e->move.linear[0];
35 e->animation.offset_x = 50 * e->move.noise_angle[0];
36 e->animation.offset_y = 50 * e->move.noise_angle[1];
37 float show1 = e->render_value(e->animation);
39 e->animation.angle = 6 * e->polar_theta[
x][
y] +
40 5 * e->move.noise_angle[1] +
41 e->animation.dist * 0.15;
43 e->animation.scale_x = 0.05;
44 e->animation.scale_y = 0.05;
45 e->animation.offset_z = 50 * e->move.linear[1];
46 e->animation.offset_x = 50 * e->move.noise_angle[1];
47 e->animation.offset_y = 50 * e->move.noise_angle[2];
48 float show2 = e->render_value(e->animation);
50 e->animation.angle = 5;
52 e->animation.scale_x = 0.10;
53 e->animation.scale_y = 0.10;
54 e->animation.offset_z = 10 * e->move.linear[2];
55 e->animation.offset_x = 10 * e->move.noise_angle[2];
56 e->animation.offset_y = 10 * e->move.noise_angle[3];
57 float show3 = e->render_value(e->animation);
59 e->animation.angle = 15;
61 e->animation.scale_x = 0.10;
62 e->animation.scale_y = 0.10;
63 e->animation.offset_z = 10 * e->move.linear[3];
64 e->animation.offset_x = 10 * e->move.noise_angle[3];
65 e->animation.offset_y = 10 * e->move.noise_angle[4];
66 float show4 = e->render_value(e->animation);
68 e->animation.angle = 2;
70 e->animation.scale_x = 0.15;
71 e->animation.scale_y = 0.15;
72 e->animation.offset_z = 10 * e->move.linear[4];
73 e->animation.offset_x = 10 * e->move.noise_angle[4];
74 e->animation.offset_y = 10 * e->move.noise_angle[5];
75 float show5 = e->render_value(e->animation);
77 e->pixel.red = show1 - show4;
78 e->pixel.green = show2 - show5;
79 e->pixel.blue = show3 - show2 + show1;
81 e->pixel = e->rgb_sanity_check(e->pixel);
82 e->setPixelColorInternal(
x,
y, e->pixel);
97 const fl::u8 *perm = PERLIN_NOISE;
99 e->timings.master_speed = 0.02;
100 e->timings.ratio[0] = 0.0025;
101 e->timings.ratio[1] = 0.0027;
102 e->timings.ratio[2] = 0.0031;
103 e->timings.ratio[3] = 0.0033;
104 e->timings.ratio[4] = 0.0036;
105 e->timings.ratio[5] = 0.0039;
107 e->calculate_oscillators(e->timings);
109 for (
int x = 0;
x < e->num_x;
x++) {
110 for (
int y = 0;
y < e->num_y;
y++) {
111 e->animation.dist = e->distance[
x][
y];
112 e->animation.angle = 5 * e->polar_theta[
x][
y] +
113 5 * e->move.noise_angle[0] +
114 e->animation.dist * 0.1;
116 e->animation.scale_x = 0.05;
117 e->animation.scale_y = 0.05;
118 e->animation.offset_z = 50 * e->move.linear[0];
119 e->animation.offset_x = 50 * e->move.noise_angle[0];
120 e->animation.offset_y = 50 * e->move.noise_angle[1];
123 e->animation.angle = 6 * e->polar_theta[
x][
y] +
124 5 * e->move.noise_angle[1] +
125 e->animation.dist * 0.15;
127 e->animation.scale_x = 0.05;
128 e->animation.scale_y = 0.05;
129 e->animation.offset_z = 50 * e->move.linear[1];
130 e->animation.offset_x = 50 * e->move.noise_angle[1];
131 e->animation.offset_y = 50 * e->move.noise_angle[2];
134 e->animation.angle = 5;
136 e->animation.scale_x = 0.10;
137 e->animation.scale_y = 0.10;
138 e->animation.offset_z = 10 * e->move.linear[2];
139 e->animation.offset_x = 10 * e->move.noise_angle[2];
140 e->animation.offset_y = 10 * e->move.noise_angle[3];
143 e->animation.angle = 15;
145 e->animation.scale_x = 0.10;
146 e->animation.scale_y = 0.10;
147 e->animation.offset_z = 10 * e->move.linear[3];
148 e->animation.offset_x = 10 * e->move.noise_angle[3];
149 e->animation.offset_y = 10 * e->move.noise_angle[4];
152 e->animation.angle = 2;
154 e->animation.scale_x = 0.15;
155 e->animation.scale_y = 0.15;
156 e->animation.offset_z = 10 * e->move.linear[4];
157 e->animation.offset_x = 10 * e->move.noise_angle[4];
158 e->animation.offset_y = 10 * e->move.noise_angle[5];
161 e->pixel.red = show1 - show4;
162 e->pixel.green = show2 - show5;
163 e->pixel.blue = show3 - show2 + show1;
165 e->pixel = e->rgb_sanity_check(e->pixel);
166 e->setPixelColorInternal(
x,
y, e->pixel);
fl::unique_ptr< Engine > mEngine