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

◆ Slow_Fade()

void animartrix_detail::ANIMartRIX::Slow_Fade ( )
inline

Definition at line 1498 of file animartrix_detail.hpp.

1498 { // nice one
1499
1500 get_ready();
1501
1503 timings.master_speed = 0.00005;
1505
1506 for (int x = 0; x < num_x; x++) {
1507 for (int y = 0; y < num_y; y++) {
1508
1509 animation.dist =
1510 sqrtf(distance[x][y]) * 0.7 * (move.directional[0] + 1.5);
1511 animation.angle =
1512 polar_theta[x][y] - move.radial[0] + distance[x][y] / 5;
1513
1514 animation.scale_x = 0.11;
1515 animation.scale_y = 0.11;
1516
1517 animation.offset_y = -50 * move.linear[0];
1518 animation.offset_x = 0;
1519 animation.offset_z = 0;
1520
1521 animation.z = move.linear[0];
1522 animation.low_limit = -0.1;
1523 animation.high_limit = 1;
1524 float show1 = render_value(animation);
1525
1526 animation.dist = animation.dist * 1.1;
1527 animation.angle += move.noise_angle[0] / 10;
1528 float show2 = render_value(animation);
1529
1530 animation.dist = animation.dist * 1.1;
1531 animation.angle += move.noise_angle[1] / 10;
1532
1533 float show3 = render_value(animation);
1534
1535 float radius = radial_filter_radius; // radius of a radial
1536 // brightness filter
1537 float radial = (radius - distance[x][y]) / distance[x][y];
1538
1539 pixel.red = radial * show1;
1540 pixel.green = radial * (show1 - show2) / 6;
1541 pixel.blue = radial * (show1 - show3) / 5;
1542
1545 }
1546 }
1547 }
int y
Definition simple.h:93
int x
Definition simple.h:92
fl::HeapVector< fl::HeapVector< float > > distance
float render_value(render_parameters &animation)
void calculate_oscillators(oscillators &timings)
void run_default_oscillators(float master_speed=0.005)
virtual void setPixelColorInternal(int x, int y, rgb pixel)=0
fl::HeapVector< fl::HeapVector< float > > polar_theta

References animation, calculate_oscillators(), distance, get_ready(), move, num_x, num_y, pixel, polar_theta, radial_filter_radius, render_value(), rgb_sanity_check(), run_default_oscillators(), setPixelColorInternal(), show1, show2, show3, timings, x, and y.

+ Here is the call graph for this function: