Graphics LC是否有海龟图形实现?

Graphics LC是否有海龟图形实现?,graphics,livecode,turtle-graphics,Graphics,Livecode,Turtle Graphics,如何在LiveCode中制作海龟图形 我想可能有人已经有一些脚本了 参考资料 这个问题与 你必须自己制作,但它们很容易。这是一个简单的例子。你必须调整一些东西,使之成为真正的海龟 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 / theNumOfStep

如何在LiveCode中制作海龟图形

我想可能有人已经有一些脚本了

参考资料

  • 这个问题与


    • 你必须自己制作,但它们很容易。这是一个简单的例子。你必须调整一些东西,使之成为真正的海龟

      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
      

      非常感谢。这是一个有用的开始。附加小问题:如何设置线条的颜色?将铅笔颜色设置为蓝色