13 auto *e = ctx.mEngine.get();
16 e->timings.master_speed = 0.02;
17 e->timings.ratio[0] = 0.025;
18 e->timings.ratio[1] = 0.027;
19 e->timings.ratio[2] = 0.031;
20 e->timings.ratio[3] = 0.0033;
21 e->timings.ratio[4] = 0.0036;
22 e->timings.ratio[5] = 0.0039;
24 e->calculate_oscillators(e->timings);
26 for (
int x = 0;
x < e->num_x;
x++) {
27 for (
int y = 0;
y < e->num_y;
y++) {
29 e->animation.dist = e->distance[
x][
y];
30 e->animation.angle = e->polar_theta[
x][
y];
32 e->animation.scale_x = 0.09;
33 e->animation.scale_y = 0.09;
34 e->animation.offset_z = 0;
35 e->animation.offset_x = 0;
36 e->animation.offset_y = -20 * e->move.linear[0];
38 e->animation.low_limit = 0;
39 e->animation.high_limit = 1;
40 e->show1 = e->render_value(e->animation);
42 e->animation.dist = e->distance[
x][
y];
43 e->animation.angle = e->polar_theta[
x][
y];
45 e->animation.scale_x = 0.09;
46 e->animation.scale_y = 0.09;
47 e->animation.offset_z = 0;
48 e->animation.offset_x = 0;
49 e->animation.offset_y = -40 * e->move.linear[0];
51 e->animation.low_limit = 0;
52 e->animation.high_limit = 1;
53 e->show2 = e->render_value(e->animation);
55 e->pixel.red = e->add(e->show2, e->show1);
57 e->pixel.blue = e->colordodge(e->show2, e->show1);
59 e->pixel = e->rgb_sanity_check(e->pixel);
61 e->setPixelColorInternal(
x,
y, e->pixel);
74 auto *e = ctx.mEngine.get();
78 const fl::u8 *perm = PERLIN_NOISE;
80 e->timings.master_speed = 0.02;
81 e->timings.ratio[0] = 0.025;
82 e->timings.ratio[1] = 0.027;
83 e->timings.ratio[2] = 0.031;
84 e->timings.ratio[3] = 0.0033;
85 e->timings.ratio[4] = 0.0036;
86 e->timings.ratio[5] = 0.0039;
88 e->calculate_oscillators(e->timings);
90 const int total_pixels =
mState.count;
92 constexpr fl::i32
FP_ONE =
static_cast<fl::i32
>(1) << FP::FRAC_BITS;
93 constexpr fl::i32 scale_xy_raw = FP(0.09f).
raw();
94 const fl::i32 cx_raw = FP(e->animation.center_x).
raw();
95 const fl::i32 cy_raw = FP(e->animation.center_y).
raw();
112 constexpr fl::i32 z1_raw = FP(5.0f).
raw();
113 const fl::i32 z2_raw = FP(500.0f).
raw();
114 const fl::i32 oy1_raw = FP(-20.0f * e->move.linear[0]).
raw();
115 const fl::i32 oy2_raw = FP(-40.0f * e->move.linear[0]).
raw();
119 for (
int i = 0; i < total_pixels; i++) {
120 const fl::i32 theta_raw =
mState.polar_theta_raw[i];
121 const fl::i32 dist_raw =
mState.distance_raw[i];
135 fl::i32 r =
add_fp(show2, show1);