Changes

Jump to navigation Jump to search
Line 187: Line 187:     
Turtle Art projects are stored as two files: (1) a .ta file contains a [http://docs.python.org/library/json.html json-encoded] serialization of the project; and (2) a .png file of the canvas.
 
Turtle Art projects are stored as two files: (1) a .ta file contains a [http://docs.python.org/library/json.html json-encoded] serialization of the project; and (2) a .png file of the canvas.
 +
 +
The json encoding of a repeat 4 forward 100 right 90 project:
 +
                                     
 +
[[0,"repeat",331,158,[null,1,2,null]],[1,["number","4"],417,167,[0,null]],[2,"forward",426,207,[0,3,4]],[3,["number","100"],500,216,[2,null]],[4,"right",426,246,[2,5,null]],[5,["number","90"],500,255,[4,null]],[-1,"turtle",0,0,0,0,50,5]]
 +
 +
    
[[Category:Activity]]
 
[[Category:Activity]]

Navigation menu