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

◆ Distance_Experiment()

void animartrix_detail::ANIMartRIX::Distance_Experiment ( )
inline

Definition at line 806 of file animartrix_detail.hpp.

806 {
807
808 get_ready();
809
810 timings.master_speed = 0.01; // speed ratios for the oscillators
811 timings.ratio[0] = 0.2; // higher values = faster transitions
812 timings.ratio[1] = 0.13;
813 timings.ratio[2] = 0.012;
814
815 timings.offset[1] = 100;
816 timings.offset[2] = 200;
817 timings.offset[3] = 300;
818
820 timings); // get linear movers and oscillators going
821
822 for (int x = 0; x < num_x; x++) {
823 for (int y = 0; y < num_y; y++) {
824
825 // describe and render animation layers
826 animation.dist = powf(distance[x][y], 0.5);
827 animation.angle = polar_theta[x][y] + move.radial[0];
828 animation.scale_x = 0.07;
829 animation.scale_y = 0.07;
830 animation.scale_z = 0.1;
831 animation.offset_y = move.linear[0];
832 animation.offset_x = 0;
833 animation.offset_z = 0;
834 animation.z = 0;
836
837 animation.dist = powf(distance[x][y], 0.6);
838 animation.angle = polar_theta[x][y] + move.noise_angle[2];
839 animation.scale_x = 0.07;
840 animation.scale_y = 0.07;
841 animation.scale_z = 0.1;
842 animation.offset_y = move.linear[1];
843 animation.offset_x = 0;
844 animation.offset_z = 0;
845 animation.z = 0;
847
848 // colormapping
849 pixel.red = show1 + show2;
850 pixel.green = show2;
851 pixel.blue = 0;
852
854
856 }
857 }
858 }
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, timings, x, and y.

+ Here is the call graph for this function: