Equilateral Triangles

Mike Bonner bonnmike at gmail.com
Tue Jun 16 11:21:44 EDT 2015


Find the center of the triangle.  (you can draw grc line overlays to help
with this)
Make a grc square, and set its loc (center) matching the point you found
for the center of the triangle.
If it cuts off the top of the triangle, make the square bigger and
recenter.  Do this until the point of the triangle is just inside the
square.  Hide your guidelines and borders and "import snapshot from rect
(the rect of grc "mysquaregraphic") of window (the windowid of this stack)
 (making sure nothing is in the way)

Heres a link to a quicky example (I left the border on so you can see the
square position)
https://dl.dropboxusercontent.com/u/11957935/triangle.png



More information about the Use-livecode mailing list