PageSourceSearch

https://matiasventura.com/wp-content/themes/matias-2023-march/js/works.js?ver=20230323

js matiasventura.com collected 2026-09-24 18:55:36 UTC 4,221 bytes, 1 lines download raw bytes

1const works=[{url:"https://matiasventura.com/wp-content/uploads/2020/03/matias-ventura-torso.jpg",label:"torso",link:"https://matiasventura.com/post/torso/"},{url:"https://matiasventura.com/wp-content/themes/matias-2020-march/images/matias-ventura-dibujo-busto.jpg",label:"drawing #3",link:"https://matiasventura.com/post/drawing-3/"},{url:"https://matiasventura.com/wp-content/uploads/2015/12/matias-ventura-pocillos-limon.jpg",label:"pocillos",link:"https://matiasventura.com/post/pocillos/"},{url:"https://matiasventura.com/wp-content/themes/matias-2016-junio/images/matias-ventura-cala-goloritze.jpg",label:"goloritze",link:"https://matiasventura.com/post/goloritze/"},{url:"https://i0.wp.com/matiasventura.com/wp-content/uploads/2010/07/chess-matias-ventura.jpg",label:"ajedrez",link:"https://matiasventura.com/post/ajedrez/"},{url:"https://matias-2023.mystagingwebsite.com/wp-content/themes/matias-2023-march/images/matias-ventura-la-gota.jpg",label:"gota",link:"https://matiasventura.com/post/gota/"},{url:"https://matiasventura.com/wp-content/uploads/2016/11/matias-ventura-black-tree.jpg",label:"black tree",link:"https://matiasventura.com/post/black-tree/"},{url:"https://matiasventura.com/wp-content/uploads/2023/03/bird-square.jpg",label:"comala",link:"https://matiasventura.com/post/the-bird-of-comala/"},{url:"https://matiasventura.com/wp-content/uploads/2010/07/Belen_Portrait.jpg",label:"belén",link:"https://matiasventura.com/post/portrait-belen-1/"},{url:"https://matiasventura.com/wp-content/uploads/2016/10/matias-ventura-green-pond.jpg",label:"green pond",link:"https://matiasventura.com/post/green-pond-with-a-fish/"},{url:"https://matiasventura.com/wp-content/uploads/2016/07/matias-ventura-cordoba.jpg",label:"córdoba",link:"https://matiasventura.com/post/cordoba/"},{url:"https://matiasventura.com/wp-content/uploads/2020/04/matias-ventura-rodin-5.jpg",label:"rodin",link:"https://matiasventura.com/post/rodin-5/"},{url:"https://matiasventura.com/wp-content/uploads/2020/04/matias-ventura-oceano.jpg",label:"océano",link:"https://matiasventura.com/post/oceano/"},{url:"https://matiasventura.com/wp-content/uploads/2020/03/matias-ventura-le-corbusier.jpg",label:"the horn",link:"https://matiasventura.com/post/le-corbusier/"},{url:"https://matiasventura.com/wp-content/uploads/2023/03/gutenberg.png",label:"gutenberg",link:"https://github.com/WordPress/gutenberg/"},{url:"https://matiasventura.com/wp-content/uploads/2023/03/cenizas-blancas-title.png",label:"cenizas",link:"https://matiasventura.com/films/cenizas-blancas/"}];let work=works[Math.round(Math.random()*works.length)];function setImage(){document.getElementById("highlight").setAttribute("href",work.link),document.getElementById("highlight__label").innerHTML=work.label}document.addEventListener?window.addEventListener("DOMContentLoaded",setImage,!1):document.attachEvent&&window.attachEvent("onload",setImage);let img,imgX,imgY,imgWidth,imgHeight,particles=[],res=3;function preload(){img=loadImage(work.url)}function setup(){let t=createCanvas(150,150);const a=img.width/img.height;if(img.width>img.height?(imgWidth=150,imgHeight=imgWidth/a):(imgHeight=150,imgWidth=imgHeight*a),imgWidth<width){let t=width/imgWidth;imgWidth*=t,imgHeight*=t}else if(imgHeight<height){let t=height/imgHeight;imgWidth*=t,imgHeight*=t}imgX=(width-imgWidth)/2,imgY=(height-imgHeight)/2;let e=select("#highlight");t.parent(e),placeParticles(),noStroke()}function draw(){clear();for(let t=0;t<particles.length;t++)particles[t].update(),particles[t].draw()}function placeParticles(){for(let t=0;t<width;t+=res)for(let a=0;a<height;a+=res){let e=map(t,imgX,imgX+imgWidth,0,img.width),i=map(a,imgY,imgY+imgHeight,0,img.height),s=img.get(e,i);particles.push(new Particle(t,a,s))}}class Particle{constructor(t,a,e){this.x=t,this.y=a,this.c=e,this.homeX=t,this.homeY=a}update(){let t=dist(this.x,this.y,mouseX,mouseY),a=atan2(this.y-mouseY,this.x-mouseX),e=dist(this.x,this.y,this.homeX,this.homeY),i=atan2(this.homeY-this.y,this.homeX-this.x),s=constrain(map(t,0,40,7,2),0,40),o=map(e,0,50,0,5),n=cos(a)*s;n+=cos(i)*o;let m=sin(a)*s;m+=sin(i)*o,this.x+=n,this.y+=m}draw(){line(this.x,this.y,this.homeX,this.homeY),fill(this.c),ellipse(this.x,this.y,4,4)}}

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.