i tried checking using min and max, but iterating through several times with only 1024 points per shape freezes processingjs! (i am putting the bounding box check within shape generation, i.e., while loop if beyond bounds, generate shape again.)
so i am wondering if there is a more efficient method to check for bounding box of a shape