Most appropriate sub-area of p5.js?
p5.js version
2.3.2
Web browser and version
chrome 150.0.7871.187
Operating system
Windows 11
Steps to reproduce this
This is not an exact bug report, but a request.
min function accepts variable length parameters in p5js v.1, Now it says "Expected at most 2 arguments, but received more in min()." Would be good if compatibility would be maintained.
Steps:
- run a code with min(1, 2, 3, 4)
Snippet:
t=0
draw=_=>{
createCanvas(W=(w=200)2,W)+colorMode(HSB)+noFill()
for(R=0;R<w;R+=18)for(T=0;T<TAU;T+=.1)
translate(x=Rcos(U=T+t/41)+w,y=R*sin(U)+w),
rotate(t/R+U),
stroke(D=min(x,y,W-x,W-y)*2,w,w,9),
ellipse(0,0,D,D/2),
resetMatrix()
++t}
Most appropriate sub-area of p5.js?
p5.js version
2.3.2
Web browser and version
chrome 150.0.7871.187
Operating system
Windows 11
Steps to reproduce this
This is not an exact bug report, but a request.
min function accepts variable length parameters in p5js v.1, Now it says "Expected at most 2 arguments, but received more in min()." Would be good if compatibility would be maintained.
Steps:
Snippet:
t=0
draw=_=>{
createCanvas(W=(w=200)2,W)+colorMode(HSB)+noFill()
for(R=0;R<w;R+=18)for(T=0;T<TAU;T+=.1)
translate(x=Rcos(U=T+t/41)+w,y=R*sin(U)+w),
rotate(t/R+U),
stroke(D=min(x,y,W-x,W-y)*2,w,w,9),
ellipse(0,0,D,D/2),
resetMatrix()
++t}