According to the docssegments returns an array of groups, but it doesn't:
const run = Pts.quickStart( "pt", "#003" );
run((time, ftime) => {
const rect = Rectangle.corners(Rectangle.fromCenter(space.center, 60, 60));
rect
.clone()
.segments(2, 1, true)
.map((side, index) => {
side.scale(1.5); // here side is an array of Pt
form.strokeOnly("#f00", 18).line(side);
})
});
According to the docs
segments
returns an array of groups, but it doesn't: