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

◆ Module_Experiment4()

void animartrix_detail::ANIMartRIX::Module_Experiment4 ( )
inline

Definition at line 3592 of file animartrix_detail.hpp.

3592 {
3593
3594 get_ready();
3595
3596 timings.master_speed = 0.031; // master speed
3597
3598 timings.ratio[0] = 0.0025; // speed ratios for the oscillators, higher
3599 // values = faster transitions
3600 timings.ratio[1] = 0.0027;
3601 timings.ratio[2] = 0.029;
3602 timings.ratio[3] = 0.033;
3603 timings.ratio[4] = 0.036; // speed ratios for the oscillators, higher
3604 // values = faster transitions
3605
3607
3608 for (int x = 0; x < num_x; x++) {
3609 for (int y = 0; y < num_y; y++) {
3610
3611 float s = 0.8;
3612
3613 animation.dist = (distance[x][y] * distance[x][y]) * 0.7;
3614 animation.angle = polar_theta[x][y];
3615 animation.z = 5;
3616 animation.scale_x = 0.004 * s;
3617 animation.scale_y = 0.003 * s;
3618 animation.offset_z = 0.1 * move.linear[2];
3619 animation.offset_y = -20 * move.linear[2];
3620 animation.offset_x = 10;
3621 animation.low_limit = 0;
3623
3624 animation.dist = (distance[x][y] * distance[x][y]) * 0.8;
3625 animation.angle = polar_theta[x][y];
3626 animation.z = 50;
3627 animation.scale_x = 0.004 * s;
3628 animation.scale_y = 0.003 * s;
3629 animation.offset_z = 0.1 * move.linear[3];
3630 animation.offset_y = -20 * move.linear[3];
3631 animation.offset_x = 100;
3632 animation.low_limit = 0;
3634
3635 animation.dist = (distance[x][y] * distance[x][y]) * 0.9;
3636 animation.angle = polar_theta[x][y];
3637 animation.z = 5000;
3638 animation.scale_x = 0.004 * s;
3639 animation.scale_y = 0.003 * s;
3640 animation.offset_z = 0.1 * move.linear[4];
3641 animation.offset_y = -20 * move.linear[4];
3642 animation.offset_x = 1000;
3643 animation.low_limit = 0;
3645
3646 // overlapping color mapping
3647 /*
3648 float r = show1;
3649 float g = show2-show1;
3650 float b = show3-show1-show2;
3651 */
3652
3653 pixel.red = show1 - show2 - show3;
3654 pixel.blue = show2 - show1 - show3;
3655 pixel.green = show3 - show1 - show2;
3656 // pixel.green = b;
3657 // pixel.green = show1 - 80;
3658 // pixel.blue = show1 - 150;
3659
3661
3663 }
3664 }
3665 }
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)
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, render_value(), rgb_sanity_check(), setPixelColorInternal(), show1, show2, show3, timings, x, and y.

+ Here is the call graph for this function: