0

How can I do turtle graphics in LiveCode?

I assume somebody probably already has some scripts.

References

Community
  • 1
  • 1
z--
  • 2,186
  • 17
  • 33

1 Answers1

1

You have to make them yourself, but they're easy. This is a simple example. You'll have to adjust a few things to make it a real turtle thing.

on foo theNumOfSteps
   if there is an img 1 then delete img 1
   put the width of this cd / theNumOfSteps into x
   put the height of this cd / theNumOfSteps into y
   choose line tool
   repeat with z = 1 to theNumOfSteps
      drag from 0,y*z to x*z,the height of this cd
   end repeat
   choose browse tool
end foo
Mark
  • 2,380
  • 11
  • 29
  • 49