FastLED 3.9.15
Loading...
Searching...
No Matches

◆ SM8()

void animartrix_detail::ANIMartRIX::SM8 ( )
inline

Definition at line 2468 of file animartrix_detail.hpp.

2468 {
2469
2470 get_ready();
2471
2472 timings.master_speed = 0.005; // master speed
2473
2474 timings.ratio[0] = 0.025; // speed ratios for the oscillators, higher
2475 // values = faster transitions
2476 timings.ratio[1] = 0.027;
2477 timings.ratio[2] = 0.031;
2478 timings.ratio[3] = 0.0053; // speed ratios for the oscillators, higher
2479 // values = faster transitions
2480 timings.ratio[4] = 0.0056;
2481 timings.ratio[5] = 0.01; // original Reddit post had no radial movement!
2482
2484
2485 for (int x = 0; x < num_x; x++) {
2486 for (int y = 0; y < num_y; y++) {
2487
2488 // float s = 0.7; // zoom factor
2489
2490 animation.dist = distance[x][y];
2491 animation.angle = 2;
2492 animation.z = 5;
2493 animation.scale_x = 0.15;
2494 animation.scale_y = 0.15;
2495 animation.offset_z = 0;
2496 animation.offset_y = 50 * move.linear[0];
2497 animation.offset_x = 0;
2498 animation.low_limit = 0;
2499 float show1 = render_value(animation);
2500
2501 animation.dist = distance[x][y];
2502 animation.angle = 2;
2503 animation.z = 150;
2504 animation.offset_x = -50 * move.linear[0];
2505 float show2 = render_value(animation);
2506
2507 animation.dist = distance[x][y];
2508 animation.angle = 1;
2509 animation.z = 550;
2510 animation.scale_x = 0.15;
2511 animation.scale_y = 0.15;
2512 animation.offset_x = 0;
2513 animation.offset_y = -50 * move.linear[1];
2514 float show4 = render_value(animation);
2515
2516 animation.dist = distance[x][y];
2517 animation.angle = 1;
2518 animation.z = 1250;
2519 animation.scale_x = 0.15;
2520 animation.scale_y = 0.15;
2521 animation.offset_x = 0;
2522 animation.offset_y = 50 * move.linear[1];
2523 float show5 = render_value(animation);
2524
2525 // float radius = radial_filter_radius; // radius of a radial
2526 // brightness filter float radial =
2527 // (radius-distance[x][y])/distance[x][y];
2528
2529 show3 = add(show1, show2);
2530 show6 = screen(show4, show5);
2531 // show9 = screen(show3, show6);
2532
2533 pixel.red = show3;
2534 pixel.green = 0;
2535 pixel.blue = show6;
2536
2538
2540 }
2541 }
2542 }
int y
Definition simple.h:93
int x
Definition simple.h:92
float add(float &a, float &b)
fl::HeapVector< fl::HeapVector< float > > distance
float render_value(render_parameters &animation)
void calculate_oscillators(oscillators &timings)
virtual void setPixelColorInternal(int x, int y, rgb pixel)=0
float screen(float &a, float &b)

References add(), animation, calculate_oscillators(), distance, get_ready(), move, num_x, num_y, pixel, render_value(), rgb_sanity_check(), screen(), setPixelColorInternal(), show1, show2, show3, show4, show5, show6, timings, x, and y.

+ Here is the call graph for this function: