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).

Thanks,
Brian
On Dec 27, 2019, 10:31 AM -0500, Sannyasin Brahmanathaswami via use-livecode 
<use-livecode@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@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to