PageSourceSearch

https://skyl.fr/js/580-legacy.94e378ac.js

js skyl.fr collected 2026-10-06 06:36:41 UTC 4,437 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkskyl_fr"]=self["webpackChunkskyl_fr"]||[]).push([[580],{1916:function(e,t){const a=(e,t)=>{const a=document.querySelector("#canvasContainer");a.addEventListener("click",async()=>{try{t&&await t.start(),e.start(),e.soundIsReady=!0}catch(a){}},{once:!0,passive:!1}),a.addEventListener("touchstart",async()=>{try{t&&await t.start(),e.start(),e.soundIsReady=!0}catch(a){}},{once:!0,passive:!1}),a.addEventListener("touchstart",e.handleTouchStart,{passive:!1}),a.addEventListener("mousedown",e.handleTouchStart,{passive:!1}),a.addEventListener("touchend",e.handleTouchEnd,{passive:!1}),a.addEventListener("mouseup",e.handleTouchEnd,{passive:!1}),a.addEventListener("ontouchmove",e=>{e.preventDefault()},{passive:!1}),a.addEventListener("touchmove",e.handleTouchMove,{passive:!1}),a.addEventListener("mousemove",e.handleTouchMove,{passive:!1})};t.A=a},9085:function(e,t){t.A=(e,t)=>Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)},5580:function(e,a,n){var s=n(9085),o=n(1916);a["default"]=e=>{const a=e;let n;a.settings={dA:{value:1.23,default:1.23,type:"range",max:3,min:.2,step:.01},dB:{value:1.3,default:1.3,type:"range",max:3,min:.2,step:.01},feed:{value:.0545,default:.0545,type:"range",max:.15,min:.01,step:.001},k:{value:.062,default:.062,type:"range",max:.15,min:.01,step:.001,noRandom:!0},t:{value:1.03,default:1.03,type:"range",max:2,min:.2,step:.01},threshold:{value:.45,default:.45,type:"range",max:1,min:0,step:.01,noRandom:!0},interval:{value:a.windowWidth>512?4:3,default:4,type:"range",max:8,min:2,step:1,noRandom:!0,callback:{name:"changeInterval",get value(){return a.settings.interval.value}}},point:Math.random()>.5,actions:[{name:"saveCapture",icon:"camera"},{name:"randomParams",icon:"shuffle"},{name:"resetDefaultSettings",icon:"refresh"}]},a.randomParams=()=>{const e=Object.keys(a.settings).filter(e=>"range"===a.settings[e].type);e.forEach(e=>{a.settings[e].noRandom||(a.settings[e].value=a.random(a.settings[e].min,a.settings[e].max).toFixed(2))}),new Array(Math.ceil(3*Math.random())).fill(null).map(()=>{a.keyCode=Math.floor(a.random(50,70)),a.keyPressed()})},a.resetDefaultSettings=()=>{const e=Object.keys(a.settings).filter(e=>"range"===a.settings[e].type);e.forEach(e=>{a.settings[e].value&&a.settings[e].default&&(a.settings[e].value=a.settings[e].default)})},a.stop=()=>{a.noLoop(),a.remove()},a.saveCapture=()=>{a.pixelDensity(a.windowWidth<512?5:12),a.redraw(),a.saveCanvas(a.canvas,`reaction_a${dA()}b${dB()}f${feed()}k${k()}t${t()}`,"png"),a.width>512&&(a.settings.point=!a.settings.point,a.redraw(),a.saveCanvas(a.canvas,`reaction_a${dA()}b${dB()}f${feed()}k${k()}t${t()}`,"png"),a.settings.point=!a.settings.point),a.pixelDensity(1)};const i=0,r=8,d=10,c=()=>Math.ceil(a.width/r),l=()=>Math.ceil(a.height/r);let u=[];const h=()=>{const e=[];for(let t=0;t<c();t+=1)for(let a=0;a<l();a+=1){const n=a*c()+t;e[n]={x:t,y:a}}return e};a.setup=()=>{a.pixelDensity(1),a.rectMode(a.CENTER),a.canvas=a.createCanvas(a.windowWidth,a.windowHeight),a.noStroke(),n=Array(d).fill(null).map(e=>({x:Math.random()*c(),y:Math.random()*l(),active:!0})),u=h()},a.interval=setInterval(()=>{n.every(e=>e.faster)&&setTimeout(()=>{a.noLoop()},4e4),n.forEach(e=>{const t=Math.floor(250*Math.random());if(a.frameCount/t===1&&(e.faster=!0),e.active){let t=8*(Math.random()-.5)*Math.sin(a.frameCount/30),n=8*(Math.random()-.5)*Math.sin(a.frameCount/30);e.faster&&(t=.05*(c()/2-e.x),n=.05*(l()/2-e.y)),e.x+=t,e.y+=n}}),u.forEach(e=>{const t=n.map(t=>({distance:(0,s.A)(t,e),point:t}));t.sort((e,t)=>e.distance-t.distance),e.noise=t[i].distance,t[i].point.active?(e.active=!0,t[i].point.faster&&(e.noise*=1.5)):e.active=!1})},40),a.draw=()=>{a.background(255),u.forEach(e=>{const{x:t,y:n,active:s,noise:o}=e;s&&(a.fill(255-o*r),a.ellipse(t*r,n*r,r))})},a.handleTouchEnd=()=>{a.staticBodyVertex=void 0},a.handleTouchMove=e=>{if(e.preventDefault(),a.staticBodyVertex)if(a.staticBodyVertex.length>0){const e=a.staticBodyVertex[a.staticBodyVertex.length-1],t=(0,s.A)(e,{x:a.mouseX,y:a.mouseY});if(t>0){a.staticBodyVertex.push({x:a.mouseX,y:a.mouseY});const e={x:Math.floor(a.mouseX/r),y:Math.floor(a.mouseY/r)};u.forEach(t=>{(0,s.A)(t,e)}
1),n.forEach(t=>{(0,s.A)(t,e)<10&&(t.faster=!0)})}}else a.staticBodyVertex.push({x:a.mouseX,y:a.mouseY})},a.handleTouchStart=e=>{e.preventDefault(),a.staticBodyVertex=[]},a.keyPressed=()=>{const{keyCode:e}=a;switch(e){case 32:a.saveCapture();break;default:break}},(0,o.A)(a)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.