Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why don PPaths bounds match the points in the path?

bounds path Points
0
Posted

Why don PPaths bounds match the points in the path?

0

PPath contains a set of points that are rendered with a pen. But, the bounds will not be exactly equal to the bounding box of the points in the path. Remember, the bounds are at least as big as the object, they are not a representation of the object. Since paths have a pen with a default width of 1, the bounds will be the bounding box of the points in the path, plus half the pen width on all sides (.5). So, what happens when you set the bounds of a path? Piccolo will scale the points to fit within the new bounds. So, if you set the width to 60, the rectangle will have a width of 59, with the pen extending .5 on either side.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123