Equilateral Triangles

Randy Hengst iowahengst at mac.com
Mon Jun 15 21:21:53 EDT 2015

would this help at all?

create a regular polygon with 3 sides… then in the script of that graphic:

on mouseDown
   repeat while the mouse is down
      local tStartLoc
      put the loc of target into tStartLoc
      set the angle of target to (the angle of target + 15)
      set the loc of target to tStartLoc
   end repeat
end mouseDown

be well,

Randy Hengst

> On Jun 15, 2015, at 3:17 PM, Richmond <richmondmathewson at gmail.com> wrote:
> I am importing equilateral triangle images, which are, obviously, contained in square PNG image files.
> When I either ROTATE or SET THE ANGLE of these images by 120 degrees they rotate, but the also jump around the screen because
> there is NO way one can centre an equilateral triangle in a square.
> Of course . . . if there was a way to readily import Vector images into LiveCode . . .
> And before you say it: converting the PNG images using 'convert' in Linux to make EPS files yields files, that while being
> openable in InkScape cannot be imported by Alejandro El Tejada's stacks.
> Richmond.
> _______________________________________________
> 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