diff options
Diffstat (limited to 'samples')
-rw-r--r-- | samples/dice.ta | 99 | ||||
-rw-r--r-- | samples/hoops.ta | 101 | ||||
-rw-r--r-- | samples/images/basketball-court1-a.png | bin | 0 -> 14766 bytes | |||
-rw-r--r-- | samples/images/basketball.png | bin | 0 -> 6143 bytes | |||
-rw-r--r-- | samples/images/turtle-a.png | bin | 0 -> 107267 bytes | |||
-rw-r--r-- | samples/images/turtle-b.png | bin | 0 -> 87746 bytes | |||
-rw-r--r-- | samples/loudness-monitor.ta | 74 | ||||
-rw-r--r-- | samples/love-speaks-volumes.ta | 109 | ||||
-rw-r--r-- | samples/scratch.ta | 88 | ||||
-rw-r--r-- | samples/spectrum_analyzer.ta | 53 | ||||
-rw-r--r-- | samples/spiralaterals.ta | 55 | ||||
-rw-r--r-- | samples/timer.ta | 82 | ||||
-rw-r--r-- | samples/vumeter.ta | 68 |
13 files changed, 729 insertions, 0 deletions
diff --git a/samples/dice.ta b/samples/dice.ta new file mode 100644 index 0000000..7d45893 --- /dev/null +++ b/samples/dice.ta @@ -0,0 +1,99 @@ +[[0, ["start", 2.0], 743, 65, [null, 24]], +[1, ["random", 0], 273, 616, [7, 2, 3, null]], +[2, ["number", 1], 333, 616, [1, null]], +[3, ["number", 6], 333, 658, [1, null]], +[4, ["random", 0], 273, 534, [7, 5, 6, null]], +[5, ["number", 1], 333, 534, [4, null]], +[6, ["number", 6], 333, 576, [4, null]], +[7, ["plus2", 20], 219, 534, [11, 4, 1]], +[8, ["storein", 0], 85, 698, [15, 13, 14, null]], +[9, ["number", 1], 237, 782, [14, null]], +[10, "box", 237, 740, [14, 12, null]], +[11, "storeinbox1", 85, 534, [16, 7, 15]], +[12, "box1", 295, 740, [10, null]], +[13, "box1", 183, 698, [8, null]], +[14, ["plus2", 0], 183, 740, [8, 10, 9]], +[15, ["vspace", 40], 85, 576, [11, 8]], +[16, "repeat", 22, 474, [18, 27, 11, 17]], +[17, ["vspace", 0], 22, 552, [16, null]], +[18, "hat", 22, 424, [null, 19, 16]], +[19, ["string", "toss dice"], 83, 432, [18, null]], +[20, "stack", 743, 233, [31, 21, 22]], +[21, ["string", "toss dice"], 804, 233, [20, null]], +[22, "stack", 743, 275, [20, 23, null]], +[23, ["string", "plot results"], 804, 275, [22, null]], +[24, ["storein", 0], 743, 107, [0, 25, 26, 31]], +[25, ["string", "trials"], 841, 107, [24, null]], +[26, ["number", 1600], 841, 149, [24, null]], +[27, "box", 71, 474, [16, 28, null]], +[28, ["string", "trials"], 129, 474, [27, null]], +[29, "hat", 1086, 452, [null, 30, 36]], +[30, ["string", "clear bins"], 1147, 460, [29, null]], +[31, "stack", 743, 191, [24, 32, 20]], +[32, ["string", "clear bins"], 804, 191, [31, null]], +[33, ["storein", 0], 1149, 604, [42, 35, 34, 38]], +[34, ["number", 0], 1247, 646, [33, null]], +[35, "box1", 1247, 604, [33, null]], +[36, "storeinbox1", 1086, 502, [29, 37, 42]], +[37, ["number", 1], 1220, 502, [36, null]], +[38, "storeinbox1", 1149, 688, [33, 41, null]], +[39, ["number", 1], 1337, 730, [41, null]], +[40, "box1", 1337, 688, [41, null]], +[41, ["plus2", 0], 1283, 688, [38, 40, 39]], +[42, "repeat", 1086, 544, [36, 43, 33, 44]], +[43, ["number", 12], 1135, 544, [42, null]], +[44, ["vspace", 0], 1086, 622, [42, null]], +[45, "hat", 528, 428, [null, 46, 82]], +[46, ["string", "plot results"], 589, 436, [45, null]], +[47, "penup", 591, 664, [58, 49]], +[48, "pendown", 591, 996, [90, 78]], +[49, ["setxy2", 40], 591, 706, [47, 54, 50, 86]], +[50, ["number", 0], 656, 828, [49, null]], +[51, "storeinbox1", 528, 562, [83, 52, 58]], +[52, ["number", 2], 662, 562, [51, null]], +[53, "box1", 764, 748, [55, null]], +[54, ["product2", 0], 656, 706, [49, 57, 55]], +[55, ["minus2", 0], 710, 748, [54, 53, 56]], +[56, ["number", 6], 788, 790, [55, null]], +[57, ["number", 50], 710, 706, [54, null]], +[58, "repeat", 528, 604, [51, 59, 47, 97]], +[59, ["number", 11], 577, 604, [58, null]], +[60, ["vspace", 40], 591, 1284, [73, 74]], +[61, "repeat", 591, 1164, [72, 62, 64, 73]], +[62, ["number", 2], 640, 1164, [61, null]], +[63, ["vspace", 0], 591, 1080, [78, 72]], +[64, "forward", 654, 1224, [61, 85, 66]], +[65, "box1", 791, 1224, [85, null]], +[66, "right", 654, 1266, [64, 67, 68]], +[67, ["number", 90], 729, 1266, [66, null]], +[68, "forward", 654, 1308, [66, 69, 70]], +[69, ["number", 40], 733, 1308, [68, null]], +[70, "right", 654, 1350, [68, 71, null]], +[71, ["number", 90], 729, 1350, [70, null]], +[72, "startfill", 591, 1122, [63, 61]], +[73, "stopfill", 591, 1242, [61, 60]], +[74, "storeinbox1", 591, 1406, [60, 77, null]], +[75, ["number", 1], 779, 1448, [77, null]], +[76, "box1", 779, 1406, [77, null]], +[77, ["plus2", 0], 725, 1406, [74, 76, 75]], +[78, "setcolor", 591, 1038, [48, 80, 63]], +[79, ["number", 10], 730, 1080, [80, null]], +[80, ["product2", 0], 676, 1038, [78, 81, 79]], +[81, "box1", 730, 1038, [80, null]], +[82, "clean", 528, 478, [45, 83]], +[83, "setshade", 528, 520, [82, 84, 51]], +[84, ["number", 25], 609, 520, [83, null]], +[85, "box", 733, 1224, [64, 65, null]], +[86, "back", 591, 870, [49, 87, 88]], +[87, ["number", 50], 649, 870, [86, null]], +[88, "show", 591, 912, [86, 89, 90]], +[89, "box1", 664, 912, [88, null]], +[90, "forward", 591, 954, [88, 91, 48]], +[91, ["number", 50], 670, 954, [90, null]], +[92, "penup", 528, 1444, [97, 94]], +[93, "pendown", 528, 1570, [94, null]], +[94, ["setxy2", 0], 528, 1486, [92, 95, 96, 93]], +[95, ["number", 0], 593, 1486, [94, null]], +[96, ["number", -50], 593, 1528, [94, null]], +[97, ["vspace", 360], 528, 682, [58, 92]], +[-1, ["turtle", "Yertle"], 0.0, -50.0, 0.0, 120.0, 25.0, 5]]
\ No newline at end of file diff --git a/samples/hoops.ta b/samples/hoops.ta new file mode 100644 index 0000000..2596cb4 --- /dev/null +++ b/samples/hoops.ta @@ -0,0 +1,101 @@ +[[0, ["start", 2.0], 639, 62, [null, 100]], +[1, "skin", 639, 398, [24, 2, 49]], +[2, ["journal", "./samples/images/basketball.png"], 821, 398, [1, null]], +[3, ["setxy2", 60], 19, 243, [16, 5, 33, null]], +[4, "xcor", 138, 243, [5, null]], +[5, ["plus2", 0], 84, 243, [3, 4, 63]], +[6, ["setxy2", 0], 564, 780, [14, 26, 7, 29]], +[7, ["number", 0], 629, 822, [6, null]], +[8, "seth", 220, 827, [12, 11, 36]], +[9, ["number", 90], 372, 869, [11, null]], +[10, "heading", 372, 827, [11, null]], +[11, ["plus2", 0], 318, 827, [8, 10, 9]], +[12, "wait", 220, 785, [18, 13, 8]], +[13, ["number", 0.25], 291, 785, [12, null]], +[14, "penup", 564, 738, [53, 6]], +[15, "pendown", 564, 948, [47, null]], +[16, "hat", 19, 193, [null, 17, 3]], +[17, ["string", "parabola"], 80, 201, [16, null]], +[18, "stack", 220, 743, [40, 19, 12]], +[19, ["string", "parabola"], 281, 743, [18, null]], +[20, "show", 639, 314, [21, 23, 24]], +[21, "setscale", 639, 272, [68, 22, 20]], +[22, ["number", 100], 735, 272, [21, null]], +[23, ["journal", "./samples/images/basketball-court1-a.png"], 712, 314, [20, null]], +[24, "setscale", 639, 356, [20, 25, 1]], +[25, ["number", 33], 735, 356, [24, null]], +[26, "leftpos", 629, 780, [6, null]], +[27, "storeinbox2", 220, 911, [36, 35, 38]], +[28, ["number", 1], 432, 953, [35, null]], +[29, "storeinbox2", 564, 864, [6, 30, 47]], +[30, ["number", 40.0], 698, 864, [29, null]], +[31, "box2", 408, 911, [35, null]], +[32, "box2", 192, 447, [64, null]], +[33, ["plus2", 0], 84, 405, [3, 34, 64]], +[34, "ycor", 138, 405, [33, null]], +[35, ["minus2", 0], 354, 911, [27, 31, 28]], +[36, ["vspace", 0], 220, 869, [8, 27]], +[37, "forever", 15, 615, [45, 39, null]], +[38, ["vspace", 0], 220, 953, [27, 85]], +[39, "ifelse", 116, 633, [37, 42, 40, 41, null]], +[40, ["vspace", 0], 220, 701, [39, 18]], +[41, "stopstack", 272, 701, [39, null]], +[42, ["greater2", 0], 206, 599, [39, 44, 43, null]], +[43, ["number", -1], 276, 641, [42, null]], +[44, "ycor", 252, 599, [42, null]], +[45, "hat", 15, 565, [null, 46, 37]], +[46, ["string", "shoot"], 76, 573, [45, null]], +[47, "stack", 564, 906, [29, 48, 15]], +[48, ["string", "shoot"], 625, 906, [47, null]], +[49, "setpensize", 639, 440, [1, 50, 54]], +[50, ["number", 1], 746, 440, [49, null]], +[51, "storeinbox1", 488, 586, [81, 52, 55]], +[52, "volume", 622, 586, [51, null]], +[53, "if", 488, 670, [55, 56, 14, null]], +[54, "forever", 639, 482, [49, 83, null]], +[55, ["vspace", 0], 488, 628, [51, 53]], +[56, ["greater2", 0], 550, 636, [53, 57, 58, null]], +[57, "box1", 596, 636, [56, null]], +[58, ["number", 300.0], 620, 678, [56, null]], +[59, ["division2", 0], 192, 327, [63, 61, 62]], +[60, ["number", 30.0], 192, 285, [63, null]], +[61, "box1", 246, 327, [59, null]], +[62, "width", 270, 369, [59, null]], +[63, ["product2", 0], 138, 285, [5, 60, 59]], +[64, ["product2", 0], 138, 447, [33, 32, 65]], +[65, ["division2", 0], 192, 489, [64, 66, 67]], +[66, "box1", 246, 489, [65, null]], +[67, "height", 270, 531, [65, null]], +[68, ["fillscreen", 0], 639, 188, [98, 69, 70, 21]], +[69, ["number", 60], 779, 188, [68, null]], +[70, ["number", 80], 779, 230, [68, null]], +[71, "readpixel", 921, 139, [87, 80]], +[72, "pop", 1029, 189, [89, null]], +[73, "pop", 1105, 299, [90, null]], +[74, "pop", 1181, 409, [91, null]], +[75, "if", 921, 223, [80, 89, 76, null]], +[76, ["vspace", 0], 997, 291, [75, 77]], +[77, "if", 997, 333, [76, 90, 78, null]], +[78, ["vspace", 0], 1073, 401, [77, 79]], +[79, "if", 1073, 443, [78, 91, 95, null]], +[80, ["vspace", 0], 921, 181, [71, 75]], +[81, "hat", 488, 536, [null, 82, 51]], +[82, ["string", "trigger"], 549, 544, [81, null]], +[83, "stack", 740, 500, [54, 84, null]], +[84, ["string", "trigger"], 801, 500, [83, null]], +[85, "stack", 220, 995, [38, 86, 99]], +[86, ["string", "test"], 281, 995, [85, null]], +[87, "hat", 921, 89, [null, 88, 71]], +[88, ["string", "test"], 982, 97, [87, null]], +[89, ["equal2", 0], 983, 189, [75, 72, 92, null]], +[90, ["equal2", 0], 1059, 299, [77, 73, 93, null]], +[91, ["equal2", 0], 1135, 409, [79, 74, 94, null]], +[92, ["number", 255.0], 1029, 231, [89, null]], +[93, ["number", 255.0], 1105, 341, [90, null]], +[94, ["number", 255.0], 1181, 451, [91, null]], +[95, "print", 1149, 511, [79, 96, 97]], +[96, ["string", "BASKET"], 1226, 511, [95, null]], +[97, "stopstack", 1149, 553, [95, null]], +[98, "clean", 639, 146, [100, 68]], +[99, "clearheap", 220, 1037, [85, null]], +[100, "hideblocks", 639, 104, [0, 98]]] diff --git a/samples/images/basketball-court1-a.png b/samples/images/basketball-court1-a.png Binary files differnew file mode 100644 index 0000000..dd3d6bb --- /dev/null +++ b/samples/images/basketball-court1-a.png diff --git a/samples/images/basketball.png b/samples/images/basketball.png Binary files differnew file mode 100644 index 0000000..e8af3fd --- /dev/null +++ b/samples/images/basketball.png diff --git a/samples/images/turtle-a.png b/samples/images/turtle-a.png Binary files differnew file mode 100644 index 0000000..e2c897a --- /dev/null +++ b/samples/images/turtle-a.png diff --git a/samples/images/turtle-b.png b/samples/images/turtle-b.png Binary files differnew file mode 100644 index 0000000..3b45dd7 --- /dev/null +++ b/samples/images/turtle-b.png diff --git a/samples/loudness-monitor.ta b/samples/loudness-monitor.ta new file mode 100644 index 0000000..7bb0b5f --- /dev/null +++ b/samples/loudness-monitor.ta @@ -0,0 +1,74 @@ +[[0, ["start", 2.0], 1217, 22, [null, 11]], +[1, ["setxy2", 20], 1434, 84, [8, 3, 6, 46]], +[2, "bottompos", 1546, 166, [6, null]], +[3, "random", 1492, 84, [1, 4, 5, null]], +[4, "leftpos", 1578, 84, [3, null]], +[5, "rightpos", 1578, 126, [3, null]], +[6, ["plus2", 0], 1492, 166, [1, 2, 7]], +[7, ["number", 100], 1546, 208, [6, null]], +[8, "penup", 1434, 42, [10, 1]], +[9, "pendown", 1434, 250, [46, 52]], +[10, "hat1", 1434, 0, [null, 8]], +[11, "stack1", 1217, 64, [0, 12]], +[12, "stack2", 1217, 106, [11, null]], +[13, "hat2", 833, 0, [null, 14]], +[14, "forever", 833, 42, [13, 38, 15]], +[15, ["vspace", 0], 833, 78, [14, null]], +[16, "storeinbox1", 894, 312, [71, 17, 40]], +[17, "volume", 1012, 312, [16, null]], +[18, "storeinbox1", 1434, 460, [47, 19, 42]], +[19, ["number", 0.0], 1552, 460, [18, null]], +[20, "forward", 1224, 433, [28, 27, 21]], +[21, "right", 1224, 475, [20, 22, 23]], +[22, ["number", 90], 1282, 475, [21, null]], +[23, "forward", 1224, 517, [21, 24, 25]], +[24, ["number", 25.0], 1294, 517, [23, null]], +[25, "right", 1224, 559, [23, 26, null]], +[26, ["number", 90], 1282, 559, [25, null]], +[27, "box1", 1294, 433, [20, null]], +[28, "repeat", 1160, 373, [50, 29, 20, 51]], +[29, ["number", 2.0], 1210, 373, [28, null]], +[30, "hat", 1160, 281, [null, 31, 50]], +[31, ["string", "bar"], 1219, 289, [30, null]], +[32, "stack", 894, 102, [38, 33, 64]], +[33, ["string", "bar"], 953, 102, [32, null]], +[34, "stack", 894, 396, [40, 35, 36]], +[35, ["string", "bar"], 953, 396, [34, null]], +[36, "wait", 894, 438, [34, 37, 62]], +[37, ["number", 0.5], 952, 438, [36, null]], +[38, "setcolor", 894, 60, [14, 39, 32]], +[39, "white", 972, 60, [38, null]], +[40, "setcolor", 894, 354, [16, 41, 34]], +[41, "box2", 972, 354, [40, null]], +[42, "storeinbox2", 1434, 502, [18, 43, null]], +[43, "random", 1552, 502, [42, 44, 45, null]], +[44, ["number", 0], 1638, 502, [43, null]], +[45, ["number", 100], 1638, 544, [43, null]], +[46, ["vspace", 0], 1434, 208, [1, 9]], +[47, ["fillscreen", 0], 1434, 376, [52, 48, 49, 18]], +[48, ["number", 60], 1520, 376, [47, null]], +[49, "white", 1520, 418, [47, null]], +[50, "startfill", 1160, 331, [30, 28]], +[51, "stopfill", 1160, 451, [28, null]], +[52, ["storein", 0], 1434, 292, [9, 53, 54, 47]], +[53, ["string", "max"], 1503, 292, [52, null]], +[54, ["number", 0.0], 1503, 334, [52, null]], +[55, "box", 1002, 530, [63, 56, null]], +[56, ["string", "max"], 1056, 530, [55, null]], +[57, ["storein", 0], 946, 590, [61, 58, 59, null]], +[58, ["string", "max"], 1015, 590, [57, null]], +[59, "box1", 1015, 632, [57, null]], +[60, "box1", 978, 488, [63, null]], +[61, "if", 894, 522, [62, 63, 57, null]], +[62, ["vspace", 0], 894, 480, [36, 61]], +[63, ["greater2", 0], 932, 488, [61, 60, 55, null]], +[64, "setcolor", 894, 144, [32, 67, 73]], +[65, ["number", 50.0], 1026, 186, [67, null]], +[66, "color", 1026, 144, [67, null]], +[67, ["plus2", 0], 972, 144, [64, 66, 65]], +[68, "storeinbox1", 894, 228, [73, 69, 71]], +[69, "box", 1012, 228, [68, 70, null]], +[70, ["string", "max"], 1066, 228, [69, null]], +[71, "stack", 894, 270, [68, 72, 16]], +[72, ["string", "bar"], 953, 270, [71, null]], +[73, ["vspace", 0], 894, 186, [64, 68]]] diff --git a/samples/love-speaks-volumes.ta b/samples/love-speaks-volumes.ta new file mode 100644 index 0000000..30e0cb3 --- /dev/null +++ b/samples/love-speaks-volumes.ta @@ -0,0 +1,109 @@ +[[0, ["start", 2.0], 760, 100, [null, 55]], +[1, "hat1", 780, 260, [null, 106]], +[2, "hat2", 120, 200, [null, 80]], +[3, "setcolor", 1164, 992, [51, 4, 16]], +[4, ["number", 0], 1242, 992, [3, null]], +[5, "stack1", 1164, 698, [17, 62]], +[6, "volume", 1233, 572, [23, null]], +[7, "forever", 1100, 344, [102, 29, 103]], +[8, "penup", 780, 378, [67, 101]], +[9, "pendown", 780, 462, [101, 70]], +[10, "penup", 780, 546, [70, 75]], +[11, "pendown", 780, 714, [78, 107]], +[12, "clean", 900, 344, [104, 13]], +[13, ["fillscreen", 0], 900, 386, [12, 15, 14, 35]], +[14, ["number", 80], 986, 428, [13, null]], +[15, "white", 986, 386, [13, null]], +[16, "stack1", 1164, 1034, [3, 42]], +[17, "setcolor", 1164, 656, [64, 18, 5]], +[18, "white", 1242, 656, [17, null]], +[19, ["storein", 0], 1164, 446, [29, 20, 27, 23]], +[20, ["string", "b"], 1233, 446, [19, null]], +[21, ["storein", 0], 900, 554, [35, 22, 41, 38]], +[22, ["string", "b"], 969, 554, [21, null]], +[23, ["storein", 0], 1164, 530, [19, 24, 6, 64]], +[24, ["string", "a"], 1233, 530, [23, null]], +[25, "box", 1283, 908, [63, 26, null]], +[26, ["string", "a"], 1338, 908, [25, null]], +[27, "box", 1233, 488, [19, 28, null]], +[28, ["string", "a"], 1288, 488, [27, null]], +[29, ["storein", 0], 1164, 362, [7, 30, 31, 19]], +[30, ["string", "c"], 1233, 362, [29, null]], +[31, "box", 1233, 404, [29, 32, null]], +[32, ["string", "b"], 1288, 404, [31, null]], +[33, "box", 1283, 614, [64, 34, null]], +[34, ["string", "c"], 1338, 614, [33, null]], +[35, ["storein", 0], 900, 470, [13, 36, 37, 21]], +[36, ["string", "a"], 969, 470, [35, null]], +[37, ["number", 0], 969, 512, [35, null]], +[38, ["storein", 0], 900, 638, [21, 39, 40, 105]], +[39, ["string", "c"], 969, 638, [38, null]], +[40, ["number", 0], 969, 680, [38, null]], +[41, ["number", 0], 969, 596, [21, null]], +[42, "wait", 1164, 1076, [16, 43, null]], +[43, ["number", 0.1], 1222, 1076, [42, null]], +[44, "setshade", 1164, 782, [62, 45, 46]], +[45, ["number", 75], 1250, 782, [44, null]], +[46, "setcolor", 1164, 824, [44, 47, 50]], +[47, ["number", 0], 1242, 824, [46, null]], +[48, "box", 1283, 740, [62, 49, null]], +[49, ["string", "b"], 1338, 740, [48, null]], +[50, "stack1", 1164, 866, [46, 63]], +[51, "setshade", 1164, 950, [63, 52, 3]], +[52, ["number", 50], 1250, 950, [51, null]], +[53, "hat", 900, 260, [null, 54, 104]], +[54, ["string", "setup"], 958, 268, [53, null]], +[55, "stack", 760, 142, [0, 56, 59]], +[56, ["string", "setup"], 818, 142, [55, null]], +[57, "hat", 1100, 260, [null, 58, 102]], +[58, ["string", "loop"], 1158, 268, [57, null]], +[59, "stack", 760, 184, [55, 60, null]], +[60, ["string", "loop"], 818, 184, [59, null]], +[61, "box1", 953, 336, [71, null]], +[62, "storeinbox1", 1164, 740, [5, 48, 44]], +[63, "storeinbox1", 1164, 908, [50, 25, 51]], +[64, "storeinbox1", 1164, 614, [23, 33, 17]], +[65, "forward", 120, 326, [80, 82, 99]], +[66, "box2", 178, 284, [80, null]], +[67, "storeinbox2", 780, 336, [106, 71, 8]], +[68, "box2", 246, 326, [82, null]], +[69, "box2", 906, 420, [73, null]], +[70, "stack2", 780, 504, [9, 10]], +[71, ["division2", 0], 899, 336, [67, 61, 72]], +[72, ["number", 2], 977, 378, [71, null]], +[73, ["division2", 0], 852, 420, [101, 69, 74]], +[74, ["number", 2], 930, 462, [73, null]], +[75, ["setxy2", 0], 780, 588, [10, 76, 77, 78]], +[76, ["number", 0], 838, 588, [75, null]], +[77, ["number", 0], 838, 630, [75, null]], +[78, "seth", 780, 672, [75, 79, 11]], +[79, ["number", 0], 882, 672, [78, null]], +[80, ["arc", 0], 120, 242, [2, 81, 66, 65]], +[81, ["number", 225], 178, 242, [80, null]], +[82, ["product2", 0], 192, 326, [65, 68, 85]], +[83, "sqrt", 300, 410, [85, 84]], +[84, ["number", 2], 354, 410, [83, null]], +[85, ["product2", 0], 246, 368, [82, 86, 83]], +[86, ["number", 1.7], 300, 368, [85, null]], +[87, ["arc", 0], 120, 616, [100, 88, 89, null]], +[88, ["number", 225], 178, 616, [87, null]], +[89, "box2", 178, 658, [87, null]], +[90, "right", 120, 450, [99, 91, 92]], +[91, ["number", 90], 178, 450, [90, null]], +[92, "forward", 120, 492, [90, 93, 100]], +[93, ["product2", 0], 192, 492, [92, 94, 95]], +[94, "box2", 246, 492, [93, null]], +[95, ["product2", 0], 246, 534, [93, 96, 97]], +[96, ["number", 1.7], 300, 534, [95, null]], +[97, "sqrt", 300, 576, [95, 98]], +[98, ["number", 2], 354, 576, [97, null]], +[99, ["vspace", 20], 120, 368, [65, 90]], +[100, ["vspace", 20], 120, 534, [92, 87]], +[101, "forward", 780, 420, [8, 73, 9]], +[102, "sandwichtop_no_arm_no_label", 1082, 310, [57, 7]], +[103, ["sandwichcollapsed", 1], 1100, 344, [7, null]], +[104, "sandwichtop_no_arm_no_label", 882, 310, [53, 12]], +[105, ["sandwichcollapsed", 1], 900, 344, [38, null]], +[106, "sandwichtop_no_arm_no_label", 762, 302, [1, 67]], +[107, ["sandwichcollapsed", 1], 780, 336, [11, null]], +[-1, ["turtle", "Yertle"], 0, 0, 0.0, 0.0, 50.0, 5]]
\ No newline at end of file diff --git a/samples/scratch.ta b/samples/scratch.ta new file mode 100644 index 0000000..ed80e40 --- /dev/null +++ b/samples/scratch.ta @@ -0,0 +1,88 @@ +[[0, ["start", 2.0], 0, 180, [null, 14]], +[1, "skin", 720, 474, [20, 2, 7]], +[2, ["journal", "./samples/images/turtle-a.png"], 902, 474, [1, null]], +[3, "skin", 720, 600, [44, 4, 35]], +[4, ["journal", "./samples/images/turtle-b.png"], 902, 600, [3, null]], +[5, "addturtle", 720, 390, [74, 6, 20]], +[6, ["number", 1], 788, 390, [5, null]], +[7, "addturtle", 720, 516, [1, 8, 44]], +[8, ["number", 2], 788, 516, [7, null]], +[9, "show", 720, 306, [11, 10, 74]], +[10, ["journal", "./samples/images/Boston.png"], 793, 306, [9, null]], +[11, "setscale", 720, 264, [45, 12, 9]], +[12, ["number", 100], 816, 264, [11, null]], +[13, "hat1", 720, 180, [null, 45]], +[14, "stack1", 0, 222, [0, 69]], +[15, "stack2", 101, 534, [46, 53]], +[16, "hat2", 360, 180, [null, 75]], +[17, ["setxy2", 20], 461, 282, [21, 19, 42, 28]], +[18, "xcor", 580, 324, [19, null]], +[19, ["plus2", 0], 526, 282, [17, 47, 18]], +[20, "penup", 720, 432, [5, 1]], +[21, "addturtle", 461, 240, [75, 22, 17]], +[22, ["number", 1], 529, 240, [21, null]], +[23, "addturtle", 461, 448, [28, 24, 25]], +[24, ["number", 2], 529, 448, [23, null]], +[25, ["setxy2", 20], 461, 490, [23, 26, 43, 30]], +[26, ["plus2", 0], 526, 490, [25, 48, 27]], +[27, "xcor", 580, 532, [26, null]], +[28, "wait", 461, 406, [17, 29, 23]], +[29, ["number", 0.5], 532, 406, [28, null]], +[30, "wait", 461, 614, [25, 31, 80]], +[31, ["number", 0.25], 532, 614, [30, null]], +[32, ["setxy2", 0], 720, 684, [35, 34, 33, 37]], +[33, ["number", -100], 785, 726, [32, null]], +[34, "leftpos", 785, 684, [32, null]], +[35, "addturtle", 720, 642, [3, 36, 32]], +[36, ["number", 1], 788, 642, [35, null]], +[37, "addturtle", 720, 768, [32, 38, 39]], +[38, ["number", 2], 788, 768, [37, null]], +[39, ["setxy2", 0], 720, 810, [37, 40, 41, null]], +[40, "leftpos", 785, 810, [39, null]], +[41, ["number", -100], 785, 852, [39, null]], +[42, "ycor", 526, 364, [17, null]], +[43, "ycor", 526, 572, [25, null]], +[44, "penup", 720, 558, [7, 3]], +[45, "clean", 720, 222, [13, 11]], +[46, "storeinbox1", 101, 492, [66, 71, 15]], +[47, "box1", 580, 282, [19, null]], +[48, "box1", 580, 490, [26, null]], +[49, "seth", 101, 618, [53, 50, 55]], +[50, ["number", 180], 199, 618, [49, null]], +[51, "seth", 101, 702, [55, 52, 58]], +[52, ["number", 180], 199, 702, [51, null]], +[53, "addturtle", 101, 576, [15, 54, 49]], +[54, ["number", 1], 169, 576, [53, null]], +[55, "addturtle", 101, 660, [49, 56, 51]], +[56, ["number", 2], 169, 660, [55, null]], +[57, "forever", 0, 306, [69, 60, null]], +[58, "storeinbox1", 101, 744, [51, 73, 68]], +[59, ["number", 0], 289, 744, [73, null]], +[60, "addturtle", 101, 324, [57, 61, 62]], +[61, ["number", 1], 169, 324, [60, null]], +[62, "seth", 101, 366, [60, 63, 64]], +[63, ["number", 0], 199, 366, [62, null]], +[64, "addturtle", 101, 408, [62, 65, 66]], +[65, ["number", 2], 169, 408, [64, null]], +[66, "seth", 101, 450, [64, 67, 46]], +[67, ["number", 0], 199, 450, [66, null]], +[68, "stack2", 101, 786, [58, null]], +[69, "storeinbox2", 0, 264, [14, 70, 57]], +[70, ["number", 20], 134, 264, [69, null]], +[71, "box2", 235, 492, [46, null]], +[72, "box2", 313, 786, [73, null]], +[73, ["minus2", 0], 235, 744, [58, 59, 72]], +[74, ["vspace", 0], 720, 348, [9, 5]], +[75, "forever", 360, 222, [16, 21, null]], +[76, ["vspace", 0], 461, 784, [77, 79]], +[77, "if", 461, 698, [80, 82, 78, 76]], +[78, "stopstack", 537, 766, [77, null]], +[79, "if", 461, 826, [76, 85, 81, null]], +[80, ["vspace", 0], 461, 656, [30, 77]], +[81, "stopstack", 537, 894, [79, null]], +[82, ["greater2", 0], 523, 664, [77, 83, 84, null]], +[83, "xcor", 569, 664, [82, null]], +[84, "rightpos", 593, 706, [82, null]], +[85, ["less2", 0], 523, 792, [79, 86, 87, null]], +[86, "xcor", 569, 792, [85, null]], +[87, "leftpos", 593, 834, [85, null]]] diff --git a/samples/spectrum_analyzer.ta b/samples/spectrum_analyzer.ta new file mode 100644 index 0000000..bb850d3 --- /dev/null +++ b/samples/spectrum_analyzer.ta @@ -0,0 +1,53 @@ +[[0, ["start", 2.0], 114, 36, [null, 31]], +[1, ["myfunc1arg", 0], 297, 138, [35, 2, 4, null]], +[2, ["string", "int(x)"], 378, 138, [1, null]], +[3, ["number", 100.0], 456, 222, [4, null]], +[4, ["division2", 0], 378, 180, [1, 5, 3]], +[5, "pitch", 432, 180, [4, null]], +[6, "forever", 114, 120, [31, 35, null]], +[7, "repeat", 644, 157, [10, 8, 16, 9]], +[8, ["number", 30.0], 692, 157, [7, null]], +[9, ["vspace", 0], 644, 235, [7, null]], +[10, "storeinbox1", 644, 115, [30, 11, 7]], +[11, ["number", 2.0], 763, 115, [10, null]], +[12, "storeinbox1", 706, 631, [19, 15, null]], +[13, ["number", 1.0], 879, 673, [15, null]], +[14, "box1", 879, 631, [15, null]], +[15, ["plus2", 0], 825, 631, [12, 14, 13]], +[16, "addturtle", 706, 217, [7, 17, 45]], +[17, "box1", 764, 217, [16, null]], +[18, "penup", 706, 343, [44, 20]], +[19, "pendown", 706, 589, [20, 12]], +[20, ["setxy2", 60], 706, 385, [18, 27, 22, 19]], +[21, ["number", 30.0], 950, 427, [26, null]], +[22, ["number", -200.0], 764, 547, [20, null]], +[23, "leftpos", 818, 507, [27, null]], +[24, "width", 926, 385, [26, null]], +[25, "box1", 980, 467, [42, null]], +[26, ["division2", 0], 872, 385, [28, 24, 21]], +[27, ["plus2", 40], 764, 385, [20, 28, 23]], +[28, ["product2", 20], 818, 385, [27, 26, 52]], +[29, "hat1", 644, 31, [null, 30]], +[30, "clean", 644, 73, [29, 10]], +[31, "stack1", 114, 78, [0, 6]], +[32, "addturtle", 230, 450, [38, 36, 33]], +[33, "forward", 230, 492, [32, 34, null]], +[34, ["number", 1.0], 302, 492, [33, null]], +[35, "storeinbox2", 178, 138, [6, 1, 39]], +[36, "box2", 288, 450, [32, null]], +[37, "box2", 308, 340, [41, null]], +[38, "if", 178, 382, [39, 48, 32, null]], +[39, ["vspace", 80], 178, 180, [35, 38]], +[40, ["number", 1.0], 332, 382, [41, null]], +[41, ["greater2", 0], 262, 340, [48, 37, 40, null]], +[42, ["minus2", 0], 926, 467, [52, 25, 43]], +[43, ["number", 1.0], 1004, 509, [42, null]], +[44, "setcolor", 706, 301, [45, 47, 18]], +[45, "setshade", 706, 259, [16, 46, 44]], +[46, ["number", 25.0], 792, 259, [45, null]], +[47, "box1", 784, 301, [44, null]], +[48, ["and2", 0], 216, 300, [38, 49, 41]], +[49, ["less2", 0], 262, 258, [48, 50, 51, null]], +[50, "box2", 308, 258, [49, null]], +[51, ["number", 21.0], 332, 300, [49, null]], +[52, ["identity2", 0], 872, 467, [28, 42]]] diff --git a/samples/spiralaterals.ta b/samples/spiralaterals.ta new file mode 100644 index 0000000..9099145 --- /dev/null +++ b/samples/spiralaterals.ta @@ -0,0 +1,55 @@ +[[0, ["start", 2.0], 180, 9, [null, 6]], +[1, "hat1", 541, 3, [null, 18]], +[2, "stack1", 306, 673, [28, null]], +[3, "forward", 761, 49, [9, 11, 12]], +[4, "right", 761, 133, [12, 5, null]], +[5, ["number", 90], 836, 133, [4, null]], +[6, "storeinbox1", 180, 51, [0, 7, 51]], +[7, ["number", 20], 314, 51, [6, null]], +[8, "box1", 894, 49, [11, null]], +[9, "hat2", 761, 7, [null, 3]], +[10, "pop", 894, 91, [11, null]], +[11, ["product2", 0], 840, 49, [3, 8, 10]], +[12, ["vspace", 0], 761, 91, [3, 4]], +[13, "stack2", 541, 171, [19, 22]], +[14, "stack2", 541, 87, [18, 19]], +[15, "stack2", 541, 255, [22, 21]], +[16, "stack2", 541, 339, [21, 20]], +[17, "stack2", 541, 423, [20, null]], +[18, "push", 541, 45, [1, 23, 14]], +[19, "push", 541, 129, [14, 24, 13]], +[20, "push", 541, 381, [16, 25, 17]], +[21, "push", 541, 297, [15, 26, 16]], +[22, "push", 541, 213, [13, 27, 15]], +[23, ["number", 1], 617, 45, [18, null]], +[24, ["number", 1], 617, 129, [19, null]], +[25, ["number", 2.0], 617, 381, [20, null]], +[26, ["number", 3.0], 617, 297, [21, null]], +[27, ["number", 1], 617, 213, [22, null]], +[28, "repeat", 243, 613, [30, 29, 2, null]], +[29, ["number", 4], 292, 613, [28, null]], +[30, ["vspace", 0], 243, 571, [41, 28]], +[31, "repeat", 180, 177, [51, 32, 46, null]], +[32, ["number", 400], 229, 177, [31, null]], +[33, ["vspace", 0], 243, 445, [34, 50]], +[34, ["setxy2", 20], 243, 321, [45, 35, 36, 33]], +[35, ["random", 0], 308, 321, [34, 37, 39, null]], +[36, ["random", 0], 308, 403, [34, 38, 40, null]], +[37, "leftpos", 368, 321, [35, null]], +[38, "bottompos", 368, 403, [36, null]], +[39, "rightpos", 368, 363, [35, null]], +[40, "toppos", 368, 445, [36, null]], +[41, "setcolor", 243, 529, [50, 42, 30]], +[42, ["random", 0], 328, 529, [41, 43, 44, null]], +[43, ["number", 0], 388, 529, [42, null]], +[44, ["number", 100], 388, 571, [42, null]], +[45, "penup", 243, 279, [46, 34]], +[46, "seth", 243, 237, [31, 47, 45]], +[47, ["random", 0], 341, 237, [46, 48, 49, null]], +[48, ["number", 0], 401, 237, [47, null]], +[49, ["number", 90], 401, 279, [47, null]], +[50, "pendown", 243, 487, [33, 41]], +[51, ["fillscreen", 0], 180, 93, [6, 52, 53, 31]], +[52, "black", 320, 93, [51, null]], +[53, ["number", 0], 320, 135, [51, null]], +[-1, ["turtle", "Yertle"], 0, -38, 0, 0, 50, 5], [-1, ["turtle", "Walter Bender"], 241, 346, 177.0, 36, 50, 5]]
\ No newline at end of file diff --git a/samples/timer.ta b/samples/timer.ta new file mode 100644 index 0000000..cb691ec --- /dev/null +++ b/samples/timer.ta @@ -0,0 +1,82 @@ +[[0, ["fillscreen", 0], 753, 146, [12, 2, 1, 4]], +[1, ["number", 80], 839, 188, [0, null]], +[2, "red", 839, 146, [0, null]], +[3, "white", 831, 230, [4, null]], +[4, "setcolor", 753, 230, [0, 3, 71]], +[5, "white", 843, 407, [7, null]], +[6, "blue", 835, 491, [9, null]], +[7, ["fillscreen", 0], 757, 407, [11, 5, 8, 9]], +[8, ["number", 80], 843, 449, [7, null]], +[9, "setcolor", 757, 491, [7, 6, 74]], +[10, ["start", 2.0], 194, 74, [null, 80]], +[11, "hat1", 757, 365, [null, 7]], +[12, "hat2", 753, 104, [null, 0]], +[13, "show", 258, 760, [68, 77, 79]], +[14, "setscale", 194, 158, [80, 15, 44]], +[15, ["number", 330], 273, 158, [14, null]], +[16, ["userdefined", "pysamples/push_time.py"], 892, 673, [41, 17, 18]], +[17, ["number", 100], 950, 673, [16, null]], +[18, ["storein", 0], 892, 715, [16, 24, 20, 21]], +[19, ["string", "h"], 961, 883, [23, null]], +[20, "pop", 961, 757, [18, null]], +[21, ["storein", 0], 892, 799, [18, 22, 34, 23]], +[22, ["string", "m"], 961, 799, [21, null]], +[23, ["storein", 0], 892, 883, [21, 19, 35, 25]], +[24, ["string", "s"], 961, 715, [18, null]], +[25, "storeinbox1", 892, 967, [23, 30, null]], +[26, "box", 1119, 967, [28, 27, null]], +[27, ["string", "h"], 1174, 967, [26, null]], +[28, ["product2", 0], 1065, 967, [30, 26, 29]], +[29, ["number", 3600], 1119, 1009, [28, null]], +[30, ["plus2", 20], 1011, 967, [25, 28, 32]], +[31, ["product2", 0], 1119, 1049, [32, 36, 33]], +[32, ["plus2", 20], 1065, 1049, [30, 31, 38]], +[33, ["number", 60], 1173, 1091, [31, null]], +[34, "pop", 961, 841, [21, null]], +[35, "pop", 961, 925, [23, null]], +[36, "box", 1173, 1049, [31, 37, null]], +[37, ["string", "m"], 1228, 1049, [36, null]], +[38, "box", 1119, 1131, [32, 39, null]], +[39, ["string", "s"], 1174, 1131, [38, null]], +[40, "box1", 313, 242, [43, null]], +[41, "hat", 892, 623, [null, 42, 16]], +[42, ["string", "time"], 950, 631, [41, null]], +[43, "storeinbox2", 194, 242, [44, 40, 46]], +[44, "stack", 194, 200, [14, 45, 43]], +[45, ["string", "time"], 252, 200, [44, null]], +[46, "stack1", 194, 284, [43, 47]], +[47, "forever", 194, 326, [46, 53, null]], +[48, ["vspace", 40], 258, 470, [58, 66]], +[49, "wait", 258, 844, [79, 50, null]], +[50, ["number", 10], 316, 844, [49, null]], +[51, "box2", 459, 470, [55, null]], +[52, "box1", 435, 428, [55, null]], +[53, "stack", 258, 344, [47, 54, 58]], +[54, ["string", "time"], 316, 344, [53, null]], +[55, ["minus2", 0], 381, 428, [56, 52, 51]], +[56, ["division2", 20], 327, 428, [58, 55, 57]], +[57, ["number", 60], 405, 510, [56, null]], +[58, ["storein", 0], 258, 386, [53, 59, 56, 48]], +[59, ["string", "elapsed"], 327, 386, [58, null]], +[60, ["greater2", 0], 320, 558, [66, 62, 61, null]], +[61, ["number", 20], 390, 600, [60, null]], +[62, "box", 366, 558, [60, 63, null]], +[63, ["string", "elapsed"], 421, 558, [62, null]], +[64, "stack2", 334, 702, [67, null]], +[65, "stack1", 386, 660, [66, null]], +[66, "ifelse", 258, 592, [48, 60, 67, 65, 68]], +[67, ["vspace", 0], 334, 660, [66, 64]], +[68, ["vspace", 20], 258, 678, [66, 13]], +[69, "box", 397, 802, [77, 70, null]], +[70, ["string", "elapsed"], 452, 802, [69, null]], +[71, ["setxy2", 0], 753, 272, [4, 72, 73, null]], +[72, ["number", -100], 811, 272, [71, null]], +[73, ["number", 200], 811, 314, [71, null]], +[74, ["setxy2", 0], 757, 533, [9, 75, 76, null]], +[75, ["number", -100], 815, 533, [74, null]], +[76, ["number", 200], 815, 575, [74, null]], +[77, ["myfunc1arg", 0], 316, 760, [13, 78, 69, null]], +[78, ["string", "int(x)"], 397, 760, [77, null]], +[79, ["vspace", 0], 258, 802, [13, 49]], +[80, "hideblocks", 194, 116, [10, 14]], +[-1, ["turtle", "Yertle"], -100.0, 200.0, 0, 70, 50, 5]]
\ No newline at end of file diff --git a/samples/vumeter.ta b/samples/vumeter.ta new file mode 100644 index 0000000..22491c7 --- /dev/null +++ b/samples/vumeter.ta @@ -0,0 +1,68 @@ +[[0, ["start", 2.0], 34, 198, [null, 18]], +[1, "forever", 34, 450, [31, 10, 2]], +[2, ["vspace", 0], 34, 486, [1, null]], +[3, ["setxy2", 0], 160, 528, [10, 4, 8, null]], +[4, ["number", 0], 218, 528, [3, null]], +[5, "volume", 326, 570, [6, null]], +[6, ["division2", 0], 272, 570, [8, 5, 7]], +[7, ["number", 10], 350, 612, [6, null]], +[8, ["minus2", 20], 218, 570, [3, 6, 9]], +[9, ["number", 200], 296, 652, [8, null]], +[10, "repeat", 98, 468, [1, 11, 3, 12]], +[11, ["number", 20], 146, 468, [10, null]], +[12, ["vspace", 20], 98, 546, [10, 20]], +[13, ["setxy2", 0], 652, 319, [17, 14, 15, 29]], +[14, ["number", 0], 710, 319, [13, null]], +[15, ["number", -200], 710, 361, [13, null]], +[16, "penup", 652, 109, [19, 21]], +[17, "pendown", 652, 277, [24, 13]], +[18, "hideblocks", 34, 240, [0, 26]], +[19, "hat1", 652, 67, [null, 16]], +[20, "stack1", 98, 628, [12, null]], +[21, ["setxy2", 0], 652, 151, [16, 22, 23, 24]], +[22, ["number", 0], 710, 151, [21, null]], +[23, "toppos", 710, 193, [21, null]], +[24, "setcolor", 652, 235, [21, 28, 17]], +[25, "white", 120, 282, [26, null]], +[26, ["fillscreen", 0], 34, 282, [18, 25, 27, 37]], +[27, ["number", 80], 120, 324, [26, null]], +[28, "white", 730, 235, [24, null]], +[29, "setcolor", 652, 403, [13, 30, null]], +[30, ["number", 0], 730, 403, [29, null]], +[31, "setpensize", 34, 408, [37, 32, 1]], +[32, ["number", 30], 137, 408, [31, null]], +[33, "hat2", 883, 65, [null, 62]], +[34, "repeat", 883, 359, [42, 35, 43, 36]], +[35, ["number", 6], 931, 359, [34, null]], +[36, ["vspace", 80], 883, 437, [34, 53]], +[37, "stack2", 34, 366, [26, 31]], +[38, ["setxy2", 0], 883, 233, [41, 39, 40, 42]], +[39, ["number", -100], 941, 233, [38, null]], +[40, ["number", -200], 941, 275, [38, null]], +[41, "penup", 883, 191, [60, 38]], +[42, "pendown", 883, 317, [38, 34]], +[43, "right", 945, 419, [34, 44, 45]], +[44, ["number", 90], 1003, 419, [43, null]], +[45, "forward", 945, 461, [43, 46, 47]], +[46, ["number", 20], 1017, 461, [45, null]], +[47, "back", 945, 503, [45, 48, 49]], +[48, ["number", 20], 1003, 503, [47, null]], +[49, "left", 945, 545, [47, 50, 54]], +[50, ["number", 90], 1003, 545, [49, null]], +[51, "forward", 945, 711, [64, 52, null]], +[52, ["number", 100], 1017, 711, [51, null]], +[53, "penup", 883, 639, [36, null]], +[54, "show", 945, 587, [49, 66, 64]], +[55, "ycor", 1165, 629, [57, null]], +[56, ["number", 200], 1165, 671, [57, null]], +[57, ["plus2", 0], 1111, 629, [58, 55, 56]], +[58, ["product2", 20], 1057, 629, [66, 57, 59]], +[59, ["number", 10], 1111, 711, [58, null]], +[60, "setpensize", 883, 149, [62, 61, 41]], +[61, ["number", 5], 986, 149, [60, null]], +[62, "setscale", 883, 107, [33, 63, 60]], +[63, ["number", 25.0], 962, 107, [62, null]], +[64, ["vspace", 20], 945, 629, [54, 51]], +[65, ["string", " "], 1057, 587, [66, null]], +[66, ["plus2", 0], 1003, 587, [54, 65, 58]], +[-1, ["turtle", "Yertle"], 0.0, -179.3354, 0.0, 0.0, 50, 30.0]]
\ No newline at end of file |