The official documentation on the P5.js website does not include any descriptive usage of the two mentioned parameters - detailX
and detailY
(for the rect()
function under "Shapes 2D primitives").
The only statements written for these two parameters are "Integer: number of segments in the x-direction" and "Integer: number of segments in the y-direction" respectively.
But these do not explain the usage and I tried to use these and see the result but there is no visible difference that can tell them apart. I had a doubt that they have something to do with the corner radius but that's not it. For that, tl, tr, br, bl are used. And, if any of these four is skipped then the previous value is used for the missing value in the parameter list. This must mean that if we provide just two corner-radius parameters then also all four rectangle corners will be rounded accordingly, and that detailX and detailY are not here for this purpose.
So, what is the purpose of these two parameters?
I have tried so many keyword combinations on google search to get an answer but didn't find anything on this. It is possible that I missed something. Please clarify this doubt.