Mini Peter De Jong Attractor
June 2016 - October 2017
A Peter de Jong attractor simulator in 223b/279b. (enhanced during #golfctober 2017)
You can edit the 4 parameters A/B/C/D at the beginning, or keep the ones by default.
Also included: an alternative version called "the one ring".
The ring demo was also golfed and submitted on Dwitter!
More info on Github
Peter de Jong Attractor:
<canvas id=c><svg onload=c.width=c.height=999;z=c.getContext`2d`;[A,B,C,D]=prompt('A,B,C,D','-2.7,-.09,-.86,-2.2').split`,`;setInterval`with(Math)for(i=1e4;i--;)z.fillStyle='rgba(0,0,0,.01)',z.fillRect(500+199*(X=sin(A*Y)-cos(B*U)),500+199*(Y=sin(C*U)-cos(D*Y)),1,1${U=Y=1}U=X)`>
The One Ring: