Polygon Side Does Note Match to Polygon rect

Brian Milby brian at milby7.com
Fri Dec 27 11:06:18 EST 2019

The center (loc) of the rect is the center of the triangle.  So to get a triangle of width W, you need to set the height and width of the grc to 2*W/sqrt(3).

On Dec 27, 2019, 10:31 AM -0500, Sannyasin Brahmanathaswami via use-livecode <use-livecode at lists.runrev.com>, wrote:
> Regular Polygon Tool:
> If you create a triangle grc and set its width and height to 243pt
> the tool positions the top of the triangle to center of the top line of the rect and leaves margins on the left and right sides. Thus, the triangle itself doesn't take the width of 243pt. It like ist has margins left and right…
> how to does have precise control over the size of the triangle (not the rect)?
> right now I have to build a "measuring grc/ruler" underneath, set it width to 243, and fiddle with the triangle until it matches my "ruler"
> BR
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

More information about the use-livecode mailing list