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

◆ Distance_Experiment()

void animartrix_detail::ANIMartRIX::Distance_Experiment ( )
inline

Definition at line 785 of file animartrix_detail.hpp.

785 {
786
787 get_ready();
788
789 timings.master_speed = 0.01; // speed ratios for the oscillators
790 timings.ratio[0] = 0.2; // higher values = faster transitions
791 timings.ratio[1] = 0.13;
792 timings.ratio[2] = 0.012;
793
794 timings.offset[1] = 100;
795 timings.offset[2] = 200;
796 timings.offset[3] = 300;
797
799 timings); // get linear movers and oscillators going
800
801 for (int x = 0; x < num_x; x++) {
802 for (int y = 0; y < num_y; y++) {
803
804 // describe and render animation layers
805 animation.dist = powf(distance[x][y], 0.5);
806 animation.angle = polar_theta[x][y] + move.radial[0];
807 animation.scale_x = 0.07;
808 animation.scale_y = 0.07;
809 animation.scale_z = 0.1;
810 animation.offset_y = move.linear[0];
811 animation.offset_x = 0;
812 animation.offset_z = 0;
813 animation.z = 0;
815
816 animation.dist = powf(distance[x][y], 0.6);
817 animation.angle = polar_theta[x][y] + move.noise_angle[2];
818 animation.scale_x = 0.07;
819 animation.scale_y = 0.07;
820 animation.scale_z = 0.1;
821 animation.offset_y = move.linear[1];
822 animation.offset_x = 0;
823 animation.offset_z = 0;
824 animation.z = 0;
826
827 // colormapping
828 pixel.red = show1 + show2;
829 pixel.green = show2;
830 pixel.blue = 0;
831
833
835 }
836 }
837 }
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:82
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:83
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, timings, x, and y.

+ Here is the call graph for this function: