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

◆ Complex_Kaleido_3()

void animartrix_detail::ANIMartRIX::Complex_Kaleido_3 ( )
inline

Definition at line 2892 of file animartrix_detail.hpp.

2892 {
2893
2894 get_ready();
2895
2896 timings.master_speed = 0.001; // master speed
2897
2898 timings.ratio[0] = 0.025; // speed ratios for the oscillators, higher
2899 // values = faster transitions
2900 timings.ratio[1] = 0.027;
2901 timings.ratio[2] = 0.031;
2902 timings.ratio[3] = 0.033; // speed ratios for the oscillators, higher
2903 // values = faster transitions
2904 timings.ratio[4] = 0.037;
2905 timings.ratio[5] = 0.038;
2906 timings.ratio[5] = 0.041;
2907
2909
2910 float size = 0.4 + move.directional[0] * 0.1;
2911
2912 float q = 2;
2913
2914 for (int x = 0; x < num_x; x++) {
2915 for (int y = 0; y < num_y; y++) {
2916
2917 animation.dist = distance[x][y];
2918 animation.angle =
2919 5 * polar_theta[x][y] + 10 * move.radial[0] +
2920 animation.dist / (((move.directional[0] + 3) * 2)) +
2921 move.noise_angle[0] * q;
2922 animation.z = 5;
2923 animation.scale_x = 0.08 * size * (move.directional[0] + 1.5);
2924 animation.scale_y = 0.07 * size;
2925 animation.offset_z = -10 * move.linear[0];
2926 animation.offset_x = -30 * move.linear[0];
2927 animation.offset_y = 0;
2928 animation.low_limit = 0;
2930
2931 animation.dist = distance[x][y];
2932 animation.angle =
2933 -5 * polar_theta[x][y] + 10 * move.radial[1] +
2934 animation.dist / (((move.directional[1] + 3) * 2)) +
2935 move.noise_angle[1] * q;
2936 animation.z = 500;
2937 animation.scale_x = 0.07 * size * (move.directional[1] + 1.1);
2938 animation.scale_y = 0.07 * size * (move.directional[2] + 1.3);
2939 ;
2940 animation.offset_z = -12 * move.linear[1];
2941 ;
2942 animation.offset_x = -(num_x - 1) * move.linear[1];
2943 animation.offset_y = 0;
2944 animation.low_limit = 0;
2946
2947 animation.dist = distance[x][y];
2948 animation.angle =
2949 -5 * polar_theta[x][y] + 12 * move.radial[2] +
2950 animation.dist / (((move.directional[3] + 3) * 2)) +
2951 move.noise_angle[2] * q;
2952 animation.z = 500;
2953 animation.scale_x = 0.05 * size * (move.directional[3] + 1.5);
2954 ;
2955 animation.scale_y = 0.05 * size * (move.directional[4] + 1.5);
2956 ;
2957 animation.offset_z = -12 * move.linear[3];
2958 animation.offset_x = -40 * move.linear[3];
2959 animation.offset_y = 0;
2960 animation.low_limit = 0;
2962
2963 animation.dist = distance[x][y];
2964 animation.angle =
2965 5 * polar_theta[x][y] + 12 * move.radial[3] +
2966 animation.dist / (((move.directional[5] + 3) * 2)) +
2967 move.noise_angle[3] * q;
2968 animation.z = 500;
2969 animation.scale_x = 0.09 * size * (move.directional[5] + 1.5);
2970 ;
2971 ;
2972 animation.scale_y = 0.09 * size * (move.directional[6] + 1.5);
2973 ;
2974 ;
2975 animation.offset_z = 0;
2976 animation.offset_x = -35 * move.linear[3];
2977 animation.offset_y = 0;
2978 animation.low_limit = 0;
2980
2983
2985
2986 float linear1 = y / 32.f;
2987 // float linear2 = (32-y) / 32.f;
2988
2989 float radius = radial_filter_radius; // radius of a radial
2990 // brightness filter
2991 float radial = (radius - distance[x][y]) / distance[x][y];
2992
2993 show7 = multiply(show1, show2) * linear1 * 2;
2995
2996 // pixel.red = radial*(show1+show2);
2997 pixel.green = 0.2 * show8; //(radial*(show1))*0.3f;
2998 pixel.blue = show5 * radial;
2999 pixel.red = (1 * show1 + 1 * show2) - show7 / 2;
3000
3002
3004 }
3005 }
3006 }
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)
float subtract(float &a, float &b)
float multiply(float &a, float &b)
virtual void setPixelColorInternal(int x, int y, rgb pixel)=0
float colordodge(float &a, float &b)
fl::HeapVector< fl::HeapVector< float > > polar_theta
float screen(float &a, float &b)

References animation, calculate_oscillators(), colordodge(), distance, get_ready(), move, multiply(), num_x, num_y, pixel, polar_theta, radial_filter_radius, render_value(), rgb_sanity_check(), screen(), setPixelColorInternal(), show1, show2, show3, show4, show5, show6, show7, show8, subtract(), timings, x, and y.

+ Here is the call graph for this function: