Skip to content

Commit

Permalink
updated rt-gac to v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponali committed Feb 15, 2024
1 parent 890ea9f commit ca70fdb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions files/jsart/demos/rt-gac.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
(()=>{
if(x+y==0){
if(!window.rtGac){
alert("Real-time Glitchart compilation -- created by @Ponali\n/!\\ CRT coloring effect may lag.");
alert("Real-time Glitchart compilation -- created by @Ponali\n/!\\ CRT coloring effect may lag.\n\nChangelog:\nv1.0.1: Added 3 experiences.");
window.rtGac={expA:0,expB:0,crt:0,change:0};
};
if(window.rtGac.change<t){
window.rtGac.change=t+5000;
window.rtGac.expA=Math.floor(Math.random()*7);
window.rtGac.expB=Math.floor(Math.random()*7);
window.rtGac.expA=Math.floor(Math.random()*10);
window.rtGac.expB=Math.floor(Math.random()*10);
while(window.rtGac.expA==window.rtGac.expB){
window.rtGac.expB=Math.floor(Math.random()*7);
window.rtGac.expB=Math.floor(Math.random()*10);
};
window.rtGac.crt=Math.random()>=0.8;
};
Expand All @@ -23,6 +23,9 @@
case 4:return (Math.abs((((x%32)-16)*Math.sin(t/400)+16)+(((y%32)-16)*Math.cos(t/300)+16)-32)<2)*16777215
case 5:return Math.floor((Math.sin((Math.sqrt((x**2)+(y**2))-(t/30))/8)+1)*127.5)+(Math.floor((Math.sin((Math.sqrt(((x-128)**2)+((y-128)**2))-(t/25))/8)+1)*127.5)*0x100)+(Math.floor((Math.sin((Math.sqrt(((x-256)**2)+((y-256)**2))-(t/20))/8)+1)*127.5)*0x10000)
case 6:return ((Math.sqrt((((x+(Math.sin((t/130)+(y/6)+(x))*2))-128)**2)+((y-128)**2))<80&&!(Math.sqrt((((x+(Math.sin((t/130)+(y/6)+(x))*2))-160)**2)+((y-128)**2))<80)||(x>115&&x<210&&Math.abs(y-128)<20)&&((x+y+(t/(1+9*((t%1700)<1200))))%20<10))*0x808080)+Math.floor(((Math.sin(x/(10+Math.sin((y/40)+(t/700))))+1)/2)*0x7f)*0x10101
case 7:return Math.max(Math.min(Math.floor(Math.random()*60*Math.sin(x/27))+((Math.abs(y-128)<100&&Math.abs(x-128)<55)*100)+(Math.sqrt(((x-89)**2)+((y-133)**2))<8)*60+(((x+y<300)&&(Math.abs(y-128)<100&&Math.abs(x-128)<55))+((x+y<228)&&(Math.sqrt(((x-89)**2)+((y-133)**2))<8)))*20,255),0)*65793;
case 8:return (Math.floor(Math.abs(x-127.5))==126)^(Math.floor(Math.abs(y-127.5))==126)?16776960:(Math.abs(Math.sqrt(((x-128)**2)+((y-128)**2))-(50+10*Math.sin(t/400)))<5?(((x+y)%2)*255)*65792:((Math.abs(Math.floor((x-128)/(y-128)+(t/1000)))%2)+(Math.abs(Math.floor((y-128)/(x-128)+(t/-1000)))%2))*37104);
case 9:return 255*(y>=128)^(255<<Math.max(Math.min(Math.floor((x-60)/32-(1-Math.abs(y-128)/160))*8,31),-1))*(Math.sin((x/40)+(t/400))*10>Math.abs(y-128)-80);
default:return 0;
}
};
Expand Down

0 comments on commit ca70fdb

Please sign in to comment.