securityos/node_modules/butterchurn-presets/presets/converted/flexi - bouncing balls [ill...

1 line
12 KiB
JSON

{"version":2,"baseVals":{"rating":0,"gammaadj":1,"decay":0.995,"echo_zoom":1.007,"echo_orient":3,"additivewave":1,"modwavealphabyvolume":1,"wave_brighten":0,"wrap":0,"wave_a":1.413,"wave_scale":0.418,"wave_smoothing":0,"wave_mystery":-0.66,"modwavealphastart":2,"modwavealphaend":2,"warpanimspeed":0.626,"warpscale":1.331,"zoom":0.99951,"warp":0.08925,"wave_r":0,"wave_g":0,"wave_x":0.24,"wave_y":0.44,"ob_size":0.5,"ob_r":0.01,"ib_size":0.26,"mv_x":64,"mv_y":48,"mv_l":0,"mv_a":0},"shapes":[{"baseVals":{"enabled":1,"sides":48,"additive":1,"rad":0.0277,"ang":6.03186,"tex_ang":6.03186,"tex_zoom":0.6839,"r2":1,"g2":0,"a2":1,"border_r":0,"border_g":0,"border_b":0,"border_a":1},"init_eqs_eel":"","frame_eqs_eel":"x = q3;\ny = q4;\nrad = q5;\n\n\nx = 0.5 + (x-0.5)/q2;\ny = 0.5 + (y-0.5)/q1;\n"},{"baseVals":{"enabled":1,"sides":48,"additive":1,"rad":0.0277,"ang":6.03186,"tex_ang":6.03186,"tex_zoom":0.6839,"r":0,"b":1,"g2":0,"b2":1,"a2":1,"border_r":0,"border_g":0,"border_b":0,"border_a":1},"init_eqs_eel":"","frame_eqs_eel":"x = q6;\ny = q7;\nrad = q8;\n\nx = 0.5 + (x-0.5)/q2;\ny = 0.5 + (y-0.5)/q1;\n"},{"baseVals":{"enabled":1,"sides":48,"additive":1,"rad":0.0277,"ang":6.03186,"tex_ang":6.03186,"tex_zoom":0.6839,"r":0,"g":1,"a2":1,"border_r":0,"border_g":0,"border_b":0,"border_a":1},"init_eqs_eel":"","frame_eqs_eel":"x = q9;\ny = q10;\nrad = q11;\n\nx = 0.5 + (x-0.5)/q2;\ny = 0.5 + (y-0.5)/q1;\n"},{"baseVals":{"sides":48,"additive":1,"thickoutline":1,"rad":0.0277,"ang":6.03186,"tex_ang":6.03186,"tex_zoom":0.6839,"r":0,"g":1,"a":0,"border_a":1,"enabled":0},"init_eqs_eel":"","frame_eqs_eel":"x = q12;\ny = q13;\nrad = q14;\n\nx = 0.5 + (x-0.5)/q2;\ny = 0.5 + (y-0.5)/q1;\n"}],"waves":[{"baseVals":{"thick":1,"additive":1,"scaling":2.0231,"smoothing":0,"r":0,"b":0,"enabled":0},"init_eqs_eel":"t2 = 0;\nt3 = 0;\nt4 = 0;\ncl = 0;","frame_eqs_eel":"vol = bass*8 + mid*5 + treb*3;\nm = m*0.97 + vol*0.08;\nmonitor = vol;\nbeat = above(vol,res)*above(vol,m)*above(vol,16);\ndiff = (1-beat)*diff + beat*(vol-res);\nres = beat*(vol + m*0.04) + (1-beat)*(res - (0.1+diff*0.02)*60/fps);\nres = max(0,res);\n\na = beat;","point_eqs_eel":"tt3 = tt3*0.6 + (value1)*1;\ntt2 = tt2*0.7 + tt3*0.2;\ntt1 = tt1*0.8 + tt2*0.1;\nd = d*0.9 + tt1*0.2;\n\ny = 0.5 + d*sample*(1-sample)*2;\nx = -0.05 + sample*1.1;"},{"baseVals":{"spectrum":1,"g":0,"b":0,"enabled":0},"init_eqs_eel":"chance = 0;","frame_eqs_eel":"x = if(q9,q15,x);\ny = if(q9,q16,y);\nv = if(q9,q19,v);\nw = if(q9,q20,w);\n\nref_w = if(q9, q10, ref_w);\n\nt1 = x;\nt2 = y;\nt3 = v;\nt4 = w;\nt5 = ref_w;\n\nt8 = 1;","point_eqs_eel":"x = t1 + sample*sin(t4)*t3*20;\ny = t2 + sample*cos(t4)*t3*20;\n\nx = 0.5 + (x-0.5)/q1;\ny = 0.5 + (y-0.5)/q2;"},{"baseVals":{"spectrum":1,"g":0,"b":0,"enabled":0},"init_eqs_eel":"chance = 0;","frame_eqs_eel":"x = if(q9,q15,x);\ny = if(q9,q16,y);\nv = if(q9,q19,v);\nw = if(q9,q20,w);\n\nref_w = if(q9, q10, ref_w);\n\nt1 = x;\nt2 = y;\nt3 = v;\nt4 = w;\nt5 = ref_w;\n\nt8 = 1;","point_eqs_eel":"x = t1 + sample*sin(t5)*t3*20*cos(t4-t5);\ny = t2 + sample*cos(t5)*t3*20*cos(t4-t5);\n\nx = 0.5 + (x-0.5)/q1;\ny = 0.5 + (y-0.5)/q2;"},{"baseVals":{"spectrum":1,"g":0,"b":0,"enabled":0},"init_eqs_eel":"chance = 0;","frame_eqs_eel":"x = if(q9,q15,x);\ny = if(q9,q16,y);\nv = if(q9,q19,v);\nw = if(q9,q20,w);\n\nref_w = if(q9, q10 + asin(1), ref_w);\n\nt1 = x;\nt2 = y;\nt3 = v;\nt4 = w;\nt5 = ref_w;\n\nt8 = 1;","point_eqs_eel":"x = t1 + sample*sin(t5)*t3*20*cos(t4-t5);\ny = t2 + sample*cos(t5)*t3*20*cos(t4-t5);\n\nx = 0.5 + (x-0.5)/q1;\ny = 0.5 + (y-0.5)/q2;"}],"init_eqs_eel":"x1 = 0.5;\nx2 = 0.51;\n\ny2 = 0.9;\ny1 = 0.7;\n\nx3 = 0.8;\ny3 = 0.5;\n\nx4 = 0.2;\ny4 = 0.5;\n\n\nax1 = 0;\nay1 = 0;\nax2 = 0;\nay2 = 0;\nax3 = 0;\nay3 = 0;\n\nvx1 = 0.000;\nvx2 = 0.000;","frame_eqs_eel":"zoom = 1;\nwarp = 0;\nwave_a = 0;\n\n//pogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogo\nr = 0.04+max(bass_att,treb_att)*0.004;\nbounce = below(y1,r);y1 = y1+vy1;vy1 = if(bounce, abs(vy1)*0.94 + (r-y1)*0.1, vy1-0.0003*60/fps);\nbounce = below(x1,r);x1 = x1+vx1;vx1 = if(bounce, abs(vx1)*0.94 + (r-x1)*0.1, vx1);\nbounce = above(x1,1-r);vx1 = if(bounce, - abs(vx1)*0.94 + (1-r-x1)*0.04, vx1);\nbounce = below(y2,r);y2 = y2 + vy2;vy2 = if(bounce,abs(vy2)*0.94+(r-y2)*.1, vy2-0.0003*60/fps);\nbounce = below(x2,r);x2 = x2+ vx2;vx2 = if(bounce, abs(vx2)*0.94 + (r-x2)*0.1, vx2);\nbounce = above(x2,1-r);vx2 = if(bounce, - abs(vx2)*0.94 + (1-r-x2)*0.1, vx2);\nbounce = below(y3,r);y3 = y3 + vy3;vy3 = if(bounce,abs(vy3)*0.94+(r-y3)*.1, vy3-0.0003*60/fps);\nbounce = below(x3,r);x3 = x3+ vx3;vx3 = if(bounce, abs(vx3)*0.94 + (r-x3)*0.1, vx3);\nbounce = above(x3,1-r);vx3 = if(bounce, - abs(vx3)*0.94 + (1-r-x3)*0.1, vx3);\nbounce = below(y4,r);y4 = y4 + vy4;vy4 = if(bounce,abs(vy4)*0.94+(r-y4)*.1, vy4-0.0003*60/fps);\nbounce = below(x4,r);x4 = x4+ vx4;vx4 = if(bounce, abs(vx4)*0.94 + (r-x4)*0.1, vx4);\nbounce = above(x4,1-r);vx4 = if(bounce, - abs(vx4)*0.94 + (1-r-x4)*0.1, vx4);\nbounce = below( sqrt( sqr(x1+vx1-x2-vx2) + sqr(y1+vy1-y2-vy2)), 2*r);\nref_ang = atan2(x2-x1,y2-y1)+asin(1); // common tangent\nv1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx2*vx2+vy2*vy2);w1 = atan2(vx1,vy1);w2 = atan2(vx2,vy2);\nvx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1);\nvy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1);\nvx2 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx2);\nvy2 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy2);\nbounce = below( sqrt( sqr(x1+vx1-x3-vx3) + sqr(y1+vy1-y3-vy3)), 2*r);\nref_ang = atan2(x3-x1,y3-y1)+asin(1); // common tangent\nv1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx3*vx3+vy3*vy3);w1 = atan2(vx1,vy1);w2 = atan2(vx3,vy3);\nvx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1);\nvy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1);\nvx3 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx3);\nvy3 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy3);\nbounce = below( sqrt( sqr(x2+vx2-x3-vx3) + sqr(y2+vy2-y3-vy3)), 2*r);\nref_ang = atan2(x3-x2,y3-y2)+asin(1); // common tangent\nv1 = sqrt(vx2*vx2+vy2*vy2);v2 = sqrt(vx3*vx3+vy3*vy3);w1 = atan2(vx2,vy2);w2 = atan2(vx3,vy3);\nvx2 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx2);\nvy2 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy2);\nvx3 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx3);\nvy3 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy3);\nbounce = below( sqrt( sqr(x1+vx1-x4-vx4) + sqr(y1+vy1-y4-vy4)), 2*r);\nref_ang = atan2(x4-x1,y4-y1)+asin(1); // common tangent\nv1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx4*vx4+vy4*vy4);w1 = atan2(vx1,vy1);w2 = atan2(vx4,vy4);\nvx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1);\nvy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1);\nvx4 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx4);\nvy4 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy4);\nbounce = below( sqrt( sqr(x2+vx2-x4-vx4) + sqr(y2+vy2-y4-vy4)), 2*r);\nref_ang = atan2(x4-x2,y4-y2)+asin(1); // common tangent\nv1 = sqrt(vx2*vx2+vy2*vy2);v2 = sqrt(vx4*vx4+vy4*vy4);w1 = atan2(vx2,vy2);w2 = atan2(vx4,vy4);\nvx2 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx2);\nvy2 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy2);\nvx4 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx4);\nvy4 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy4);\nbounce = below( sqrt( sqr(x3+vx3-x4-vx4) + sqr(y3+vy3-y4-vy4)), 2*r);\nref_ang = atan2(x4-x3,y4-y3)+asin(1); // common tangent\nv1 = sqrt(vx3*vx3+vy3*vy3);v2 = sqrt(vx4*vx4+vy4*vy4);w1 = atan2(vx3,vy3);w2 = atan2(vx4,vy4);\nvx3 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx3);\nvy3 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy3);\nvx4 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx4);\nvy4 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy4);\n//pogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogo\n\nq1 = aspectx;\nq2 = aspecty;\nq3 = x1; q4 = y1; q5 = r*2;\nq6 = x2; q7 = y2; q8 = r*2;\nq9 = x3; q10 = y3; q11 = r*2;\nq12 = x4; q13 = y4; q14 = r*2;\nq15 = 0.5 + (q12-0.5)/aspecty;\nq16 = 0.5 + (q13-0.5)/aspectx;","pixel_eqs_eel":"","warp":" shader_body { \n vec3 ret_1;\n vec2 tmpvar_2;\n tmpvar_2 = (texsize.zw * 8.0);\n vec3 tmpvar_3;\n tmpvar_3 = (((texture (sampler_blur1, \n (uv + (vec2(1.0, 0.0) * tmpvar_2))\n ).xyz * scale1) + bias1) - ((texture (sampler_blur1, \n (uv - (vec2(1.0, 0.0) * tmpvar_2))\n ).xyz * scale1) + bias1));\n vec3 tmpvar_4;\n tmpvar_4 = (((texture (sampler_blur1, \n (uv + (vec2(0.0, 1.0) * tmpvar_2))\n ).xyz * scale1) + bias1) - ((texture (sampler_blur1, \n (uv - (vec2(0.0, 1.0) * tmpvar_2))\n ).xyz * scale1) + bias1));\n vec2 tmpvar_5;\n tmpvar_5.x = tmpvar_3.x;\n tmpvar_5.y = tmpvar_4.x;\n ret_1.x = texture (sampler_fc_main, (uv + ((tmpvar_5 * texsize.zw) * 4.0))).x;\n vec2 tmpvar_6;\n tmpvar_6.x = tmpvar_3.y;\n tmpvar_6.y = tmpvar_4.y;\n ret_1.y = texture (sampler_fc_main, (uv + ((tmpvar_6 * texsize.zw) * 4.0))).y;\n vec2 tmpvar_7;\n tmpvar_7.x = tmpvar_3.z;\n tmpvar_7.y = tmpvar_4.z;\n ret_1.z = texture (sampler_fc_main, (uv + ((tmpvar_7 * texsize.zw) * 4.0))).z;\n ret_1 = (ret_1 - ((ret_1.yzx + ret_1.zxy) - 0.001));\n ret_1 = (ret_1 + ((texture (sampler_noise_lq, \n (((uv_orig * texsize.xy) * (texsize_noise_lq.zw * 1.2)) + rand_frame.xy)\n ).xyz - 0.6) * 0.04));\n vec4 tmpvar_8;\n tmpvar_8.w = 1.0;\n tmpvar_8.xyz = ret_1;\n ret = tmpvar_8.xyz;\n }","comp":" shader_body { \n vec3 ret_1;\n vec2 tmpvar_2;\n tmpvar_2 = (texsize.zw * 2.0);\n vec3 tmpvar_3;\n tmpvar_3 = (((texture (sampler_blur1, \n (uv + (vec2(1.0, 0.0) * tmpvar_2))\n ).xyz * scale1) + bias1) - ((texture (sampler_blur1, \n (uv - (vec2(1.0, 0.0) * tmpvar_2))\n ).xyz * scale1) + bias1));\n vec3 tmpvar_4;\n tmpvar_4 = (((texture (sampler_blur1, \n (uv + (vec2(0.0, 1.0) * tmpvar_2))\n ).xyz * scale1) + bias1) - ((texture (sampler_blur1, \n (uv - (vec2(0.0, 1.0) * tmpvar_2))\n ).xyz * scale1) + bias1));\n vec2 tmpvar_5;\n tmpvar_5.x = q15;\n tmpvar_5.y = (1.0 - q16);\n vec2 tmpvar_6;\n tmpvar_6.x = tmpvar_3.y;\n tmpvar_6.y = tmpvar_4.y;\n vec2 x_7;\n x_7 = ((uv - (tmpvar_6 * 4.0)) - tmpvar_5);\n vec2 tmpvar_8;\n tmpvar_8.x = tmpvar_3.x;\n tmpvar_8.y = tmpvar_4.x;\n vec2 x_9;\n x_9 = ((uv - (tmpvar_8 * 4.0)) - tmpvar_5);\n vec2 tmpvar_10;\n tmpvar_10.x = tmpvar_3.z;\n tmpvar_10.y = tmpvar_4.z;\n vec2 x_11;\n x_11 = ((uv - (tmpvar_10 * 4.0)) - tmpvar_5);\n vec3 tmpvar_12;\n tmpvar_12.x = pow (sqrt(dot (x_9, x_9)), 0.2);\n tmpvar_12.y = pow (sqrt(dot (x_7, x_7)), 0.2);\n tmpvar_12.z = pow (sqrt(dot (x_11, x_11)), 0.2);\n ret_1 = (((1.0 - tmpvar_12) * texture (sampler_main, uv).xyz) * 2.0);\n vec2 x_13;\n x_13 = (uv - tmpvar_5);\n ret_1 = (ret_1 + clamp ((1.0 - \n (sqrt(dot (x_13, x_13)) * 32.0)\n ), 0.0, 1.0));\n vec4 tmpvar_14;\n tmpvar_14.w = 1.0;\n tmpvar_14.xyz = ret_1;\n ret = tmpvar_14.xyz;\n }"}