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

1 line
13 KiB
JSON

{"version":2,"baseVals":{"rating":1,"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.005,"ob_r":0.01,"ob_b":1,"ob_a":1,"ib_size":0.26,"mv_x":64,"mv_y":48,"mv_l":0,"mv_a":0},"shapes":[{"baseVals":{"enabled":1,"sides":48,"rad":0.0277,"ang":6.03186,"tex_ang":6.03186,"tex_zoom":0.6839,"r2":1,"g2":0,"a2":1,"border_b":0,"border_a":0},"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,"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":0},"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,"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":0},"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 = atan2(vx4,vy4);\nq16 = sqrt(vx4*vx4+vy4*vy4);","pixel_eqs_eel":"x = 0.5 + (x-0.5)*q2;\ny = 0.5 + (y-0.5)*q1;\n\n\ndir = -q15 + asin(1);\nb1 = 0.075;\nm1 = q16*25;\nxx = q12;\nyy = 1-q13;\nx1 = xx -sin(dir)*b1;\ny1 = yy -cos(dir)*b1;\nx2 = xx +sin(dir)*b1;\ny2 = yy +cos(dir)*b1;\nd1 = sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y))-b1*2;\nd2 = sqrt((x2-x)*(x2-x)+(y2-y)*(y2-y))-b1*2;\nsi1 = sigmoid(-d1,1000);\nsi2 = sigmoid(-d2,1000);\ndx = (si1*sin(y1-y)*m1*d1 - si2*sin(y2-y)*m1*d2)*3*q1;\ndy = (-si1*sin(x1-x)*m1*d1 + si2*sin(x2-x)*m1*d2)*3*q2;","warp":" shader_body { \n float conway_1;\n vec3 ret_2;\n vec2 tmpvar_3;\n tmpvar_3.x = (((\n ((texture (sampler_blur2, (uv + vec2(0.02, 0.0))).xyz * scale2) + bias2)\n - \n ((texture (sampler_blur2, (uv - vec2(0.02, 0.0))).xyz * scale2) + bias2)\n ).y * 1280.0) * texsize.z);\n tmpvar_3.y = (((\n ((texture (sampler_blur2, (uv + vec2(0.0, 0.02))).xyz * scale2) + bias2)\n - \n ((texture (sampler_blur2, (uv - vec2(0.0, 0.02))).xyz * scale2) + bias2)\n ).y * 1024.0) * texsize.w);\n ret_2.y = texture (sampler_pc_main, (uv - (tmpvar_3 * 0.004))).y;\n ret_2.y = (ret_2.y + ((\n ((ret_2.y - ((texture (sampler_blur1, uv).xyz * scale1) + bias1).y) - 0.1)\n * 0.1) + 0.02));\n vec2 tmpvar_4;\n tmpvar_4 = (vec2(0.0, 1.0) * texsize.zw);\n ret_2.z = (texture (sampler_fc_main, (uv - tmpvar_4)).z - 0.004);\n conway_1 = (texture (sampler_pw_main, (uv_orig - texsize.zw)).x + texture (sampler_pw_main, (uv_orig + (vec2(0.0, -1.0) * texsize.zw))).x);\n conway_1 = (conway_1 + texture (sampler_pw_main, (uv_orig + (vec2(1.0, -1.0) * texsize.zw))).x);\n conway_1 = (conway_1 + texture (sampler_pw_main, (uv_orig + (vec2(-1.0, 0.0) * texsize.zw))).x);\n conway_1 = (conway_1 + texture (sampler_pw_main, (uv_orig + (vec2(1.0, 0.0) * texsize.zw))).x);\n conway_1 = (conway_1 + texture (sampler_pw_main, (uv_orig + (vec2(-1.0, 1.0) * texsize.zw))).x);\n conway_1 = (conway_1 + texture (sampler_pw_main, (uv_orig + tmpvar_4)).x);\n conway_1 = (conway_1 + texture (sampler_pw_main, (uv_orig + texsize.zw)).x);\n conway_1 = (conway_1 - fract(conway_1));\n float tmpvar_5;\n tmpvar_5 = clamp (texture (sampler_pc_main, uv_orig).x, 0.0, 1.0);\n ret_2.x = (clamp ((1.0 - \n abs((conway_1 - 3.0))\n ), 0.0, 1.0) * (1.0 - tmpvar_5));\n ret_2.x = (ret_2.x + (clamp (\n max ((1.0 - abs((conway_1 - 2.0))), (1.0 - abs((conway_1 - 3.0))))\n , 0.0, 1.0) * tmpvar_5));\n vec4 tmpvar_6;\n tmpvar_6.w = 1.0;\n tmpvar_6.xyz = ret_2;\n ret = tmpvar_6.xyz;\n }","comp":" shader_body { \n vec2 moebius_1;\n vec3 ret_2;\n vec2 tmpvar_3;\n tmpvar_3.x = q11;\n tmpvar_3.y = q12;\n vec2 tmpvar_4;\n tmpvar_4.x = q17;\n tmpvar_4.y = q18;\n vec2 tmpvar_5;\n vec2 tmpvar_6;\n tmpvar_6 = (uv - 0.5);\n tmpvar_5 = (tmpvar_6 * aspect.xy);\n vec2 tmpvar_7;\n tmpvar_7.x = ((tmpvar_5.x * q15) - (tmpvar_5.y * q16));\n tmpvar_7.y = ((tmpvar_5.x * q16) - (tmpvar_5.y * q15));\n vec2 tmpvar_8;\n tmpvar_8 = (tmpvar_7 + tmpvar_4);\n vec2 tmpvar_9;\n tmpvar_9.x = ((q13 * tmpvar_8.x) + (q14 * tmpvar_8.y));\n tmpvar_9.y = ((q14 * tmpvar_8.x) - (q13 * tmpvar_8.y));\n moebius_1 = (((tmpvar_9 / \n ((tmpvar_8.x * tmpvar_8.x) + (tmpvar_8.y * tmpvar_8.y))\n ) + tmpvar_3) * 0.5);\n float tmpvar_10;\n tmpvar_10 = sqrt(dot (moebius_1, moebius_1));\n moebius_1 = (0.5 + ((\n (1.0 - abs(((\n fract((moebius_1 * 0.5))\n * 2.0) - 1.0)))\n - 0.5) * 0.95));\n vec2 tmpvar_11;\n tmpvar_11 = (0.5 + (tmpvar_6 * 0.2));\n ret_2 = (texture (sampler_main, tmpvar_11).z * vec3(0.4, 0.0, 0.7));\n ret_2 = (mix (ret_2, vec3(0.0, 1.0, 1.0), vec3(clamp (texture (sampler_fc_main, moebius_1).y, 0.0, 1.0))) * (1.4 - pow (\n (tmpvar_10 * 0.8)\n , 0.3)));\n ret_2 = (mix (mix (\n mix (ret_2, vec3(4.0, 1.0, 0.0), vec3(((clamp (\n (texture (sampler_fc_main, tmpvar_11).y - texture (sampler_pc_main, tmpvar_11).y)\n , 0.0, 1.0) * 4.0) * (tmpvar_10 * tmpvar_10))))\n , vec3(-4.0, -4.0, -4.0), texture (sampler_main, tmpvar_11).xxx), vec3(2.0, 2.0, 2.0), vec3((texture (sampler_pc_main, tmpvar_11).x * 0.75))) - (roam_sin.zyx * roam_cos.ywx));\n vec4 tmpvar_12;\n tmpvar_12.w = 1.0;\n tmpvar_12.xyz = ret_2;\n ret = tmpvar_12.xyz;\n }"}