From b34eb4723bde739eed00c9595192aa5325808592 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 19 Jul 2012 19:14:45 +0000 Subject: cleaned up examples --- diff --git a/samples/basic-intro.ta b/samples/basic-intro.ta index 311bda7..0b419b3 100644 --- a/samples/basic-intro.ta +++ b/samples/basic-intro.ta @@ -1,99 +1,99 @@ -[[0, ["start", 2.0], 67, 435, [null, 24]], -[1, ["userdefined2args", "pysamples/load_block.py"], 1393, 606, [17, 5, 2, 6]], -[2, ["number", 100], 1451, 648, [1, null]], -[3, ["userdefined", "pysamples/load_block.py"], 33, 1175, [49, 4, 28]], -[4, ["string", "delete"], 91, 1175, [3, null]], -[5, ["string", "forward"], 1451, 606, [1, null]], -[6, ["userdefined2args", "pysamples/load_block.py"], 1393, 690, [1, 7, 8, 34]], -[7, ["string", "right"], 1451, 690, [6, null]], -[8, ["number", 90], 1451, 732, [6, null]], -[9, ["userdefined2args", "pysamples/load_block.py"], 1393, 356, [31, 10, 11, 12]], -[10, ["string", "repeat"], 1451, 356, [9, null]], -[11, ["number", 4], 1451, 398, [9, null]], -[12, ["setxy2", 20], 1393, 440, [9, 16, 20, 17]], -[13, ["number", 20], 1505, 482, [16, null]], -[14, "xcor", 1505, 440, [16, null]], -[15, "ycor", 1505, 522, [20, null]], -[16, ["plus2", 0], 1451, 440, [12, 14, 13]], -[17, ["vspace", 0], 1393, 564, [12, 1]], -[18, "penup", 1393, 230, [98, 31]], -[19, "pendown", 1393, 1026, [37, null]], -[20, ["minus2", 0], 1451, 522, [12, 15, 21]], -[21, ["number", 40], 1529, 564, [20, null]], -[22, "hat", 33, 869, [null, 23, 94]], -[23, ["string", "next"], 91, 881, [22, null]], -[24, "stack", 67, 481, [0, 25, null]], -[25, ["string", "next"], 125, 481, [24, null]], -[26, "clean", 33, 1007, [95, 49]], -[27, "hat", 1375, 142, [null, 48, 98]], -[28, "stack", 33, 1217, [3, 47, 43]], -[29, "show", 1393, 900, [42, 30, 37]], -[30, ["string", "The repeat block lets your repeat an action."], 1451, 900, [29, null]], -[31, ["setxy2", 0], 1393, 272, [18, 32, 33, 9]], -[32, ["number", -300], 1451, 272, [31, null]], -[33, ["number", 100], 1451, 314, [31, null]], -[34, ["setxy2", 0], 1393, 774, [6, 35, 41, 42]], -[35, ["number", -300], 1451, 774, [34, null]], -[36, ["number", 150], 1529, 858, [41, null]], -[37, ["setxy2", 0], 1393, 942, [29, 38, 39, 19]], -[38, ["number", 0], 1451, 942, [37, null]], -[39, ["number", 0], 1451, 984, [37, null]], -[40, "ycor", 1505, 816, [41, null]], -[41, ["minus2", 0], 1451, 816, [34, 40, 36]], -[42, ["vspace", 0], 1393, 858, [34, 29]], -[43, "storeinbox1", 33, 1259, [28, 46, null]], -[44, ["number", 1], 205, 1301, [46, null]], -[45, "box1", 205, 1259, [46, null]], -[46, ["plus2", 0], 151, 1259, [43, 45, 44]], -[47, "box1", 91, 1217, [28, null]], -[48, ["number", 1], 1433, 154, [27, null]], -[49, ["if", 0], 33, 1049, [26, 53, 50, 3]], -[50, "storeinbox1", 51, 1115, [49, 51, null]], -[51, ["number", 0], 169, 1115, [50, null]], -[52, "box1", 135, 1015, [53, null]], -[53, ["greater2", 0], 89, 1015, [49, 52, 54, null]], -[54, ["number", 1], 159, 1057, [53, null]], -[55, ["number", 0], 1433, 36, [93, null]], -[56, "penup", 1358, 88, [97, 57]], -[57, ["setxy2", 0], 1358, 130, [56, 58, 59, 60]], -[58, ["number", -300], 1416, 130, [57, null]], -[59, ["number", 150], 1416, 172, [57, null]], -[60, ["userdefined2args", "pysamples/load_block.py"], 1358, 214, [57, 61, 62, 84]], -[61, ["string", "forward"], 1416, 214, [60, null]], -[62, ["number", 100], 1416, 256, [60, null]], -[63, ["userdefined2args", "pysamples/load_block.py"], 1358, 382, [84, 64, 65, 87]], -[64, ["string", "back"], 1416, 382, [63, null]], -[65, ["number", 100], 1416, 424, [63, null]], -[66, ["userdefined2args", "pysamples/load_block.py"], 1358, 718, [90, 67, 68, 69]], -[67, ["string", "right"], 1416, 718, [66, null]], -[68, ["number", 90], 1416, 760, [66, null]], -[69, ["setxy2", 0], 1358, 802, [66, 70, 71, 74]], -[70, ["number", -300], 1416, 802, [69, null]], -[71, ["minus2", 0], 1416, 844, [69, 72, 73]], -[72, "ycor", 1470, 844, [71, null]], -[73, ["number", 75], 1494, 886, [71, null]], -[74, ["vspace", 0], 1358, 886, [69, 75]], -[75, "show", 1358, 928, [74, 76, 77]], -[76, ["string", "The turtle can go forward, back, left, and right."], 1416, 928, [75, null]], -[77, ["setxy2", 0], 1358, 970, [75, 78, 79, 80]], -[78, ["number", 0], 1416, 970, [77, null]], -[79, ["number", 0], 1416, 1012, [77, null]], -[80, "pendown", 1358, 1054, [77, null]], -[81, ["userdefined2args", "pysamples/load_block.py"], 1358, 550, [87, 82, 83, 90]], -[82, ["string", "left"], 1416, 550, [81, null]], -[83, ["number", 90], 1416, 592, [81, null]], -[84, ["setxy2", 0], 1358, 298, [60, 85, 86, 63]], -[85, ["number", -300], 1416, 298, [84, null]], -[86, ["number", 75], 1416, 340, [84, null]], -[87, ["setxy2", 0], 1358, 466, [63, 88, 89, 81]], -[88, ["number", -300], 1416, 466, [87, null]], -[89, ["number", 0], 1416, 508, [87, null]], -[90, ["setxy2", 0], 1358, 634, [81, 91, 92, 66]], -[91, ["number", -300], 1416, 634, [90, null]], -[92, ["number", -75], 1416, 676, [90, null]], -[93, "hat", 1375, 24, [null, 55, 97]], -[94, "showblocks", 33, 923, [22, 95]], -[95, ["userdefined", "pysamples/load_palette.py"], 33, 965, [94, 96, 26]], -[96, ["string", "turtle"], 91, 965, [95, null]], -[97, "sandwichclampcollapsed", 1375, 78, [93, 56, null]], -[98, "sandwichclampcollapsed", 1375, 196, [27, 18, null]]] +[[0, ["start", 2.0], 67, 435, [null, 13]], +[1, ["setxy2", 20], 1393, 440, [84, 5, 9, 6]], +[2, ["number", 20], 1505, 482, [5, null]], +[3, "xcor", 1505, 440, [5, null]], +[4, "ycor", 1505, 522, [9, null]], +[5, ["plus2", 0], 1451, 440, [1, 3, 2]], +[6, ["vspace", 0], 1393, 564, [1, 90]], +[7, "penup", 1393, 230, [73, 20]], +[8, "pendown", 1393, 1026, [26, null]], +[9, ["minus2", 0], 1451, 522, [1, 4, 10]], +[10, ["number", 40], 1529, 564, [9, null]], +[11, "hat", 33, 869, [null, 12, 71]], +[12, ["string", "next"], 91, 881, [11, null]], +[13, "stack", 67, 481, [0, 14, null]], +[14, ["string", "next"], 125, 481, [13, null]], +[15, "clean", 33, 1007, [76, 38]], +[16, "hat", 1375, 142, [null, 37, 73]], +[17, "stack", 33, 1217, [74, 36, 32]], +[18, "show", 1393, 900, [31, 19, 26]], +[19, ["string", "The repeat block lets your repeat an action."], 1451, 900, [18, null]], +[20, ["setxy2", 0], 1393, 272, [7, 21, 22, 84]], +[21, ["number", -300], 1451, 272, [20, null]], +[22, ["number", 100], 1451, 314, [20, null]], +[23, ["setxy2", 0], 1393, 774, [88, 24, 30, 31]], +[24, ["number", -300], 1451, 774, [23, null]], +[25, ["number", 150], 1529, 858, [30, null]], +[26, ["setxy2", 0], 1393, 942, [18, 27, 28, 8]], +[27, ["number", 0], 1451, 942, [26, null]], +[28, ["number", 0], 1451, 984, [26, null]], +[29, "ycor", 1505, 816, [30, null]], +[30, ["minus2", 0], 1451, 816, [23, 29, 25]], +[31, ["vspace", 0], 1393, 858, [23, 18]], +[32, "storeinbox1", 33, 1259, [17, 35, null]], +[33, ["number", 1], 205, 1301, [35, null]], +[34, "box1", 205, 1259, [35, null]], +[35, ["plus2", 0], 151, 1259, [32, 34, 33]], +[36, "box1", 91, 1217, [17, null]], +[37, ["number", 1], 1433, 154, [16, null]], +[38, ["if", 0], 33, 1049, [15, 42, 39, 74]], +[39, "storeinbox1", 51, 1115, [38, 40, null]], +[40, ["number", 0], 169, 1115, [39, null]], +[41, "box1", 135, 1015, [42, null]], +[42, ["greater2", 0], 89, 1015, [38, 41, 43, null]], +[43, ["number", 1], 159, 1057, [42, null]], +[44, ["number", 0], 1399, 279, [70, null]], +[45, "penup", 1359, 355, [72, 46]], +[46, ["setxy2", 0], 1359, 397, [45, 47, 48, 86]], +[47, ["number", -300], 1417, 397, [46, null]], +[48, ["number", 150], 1417, 439, [46, null]], +[49, ["setxy2", 0], 1359, 1069, [78, 50, 51, 54]], +[50, ["number", -300], 1417, 1069, [49, null]], +[51, ["minus2", 0], 1417, 1111, [49, 52, 53]], +[52, "ycor", 1471, 1111, [51, null]], +[53, ["number", 75], 1495, 1153, [51, null]], +[54, ["vspace", 0], 1359, 1153, [49, 55]], +[55, "show", 1359, 1195, [54, 56, 57]], +[56, ["string", "The turtle can go forward, back, left, and right."], 1417, 1195, [55, null]], +[57, ["setxy2", 0], 1359, 1237, [55, 58, 59, 60]], +[58, ["number", 0], 1417, 1237, [57, null]], +[59, ["number", 0], 1417, 1279, [57, null]], +[60, "pendown", 1359, 1321, [57, null]], +[61, ["setxy2", 0], 1359, 565, [86, 62, 63, 82]], +[62, ["number", -300], 1417, 565, [61, null]], +[63, ["number", 75], 1417, 607, [61, null]], +[64, ["setxy2", 0], 1359, 733, [82, 65, 66, 80]], +[65, ["number", -300], 1417, 733, [64, null]], +[66, ["number", 0], 1417, 775, [64, null]], +[67, ["setxy2", 0], 1359, 901, [80, 68, 69, 78]], +[68, ["number", -300], 1417, 901, [67, null]], +[69, ["number", -75], 1417, 943, [67, null]], +[70, "hat", 1341, 267, [null, 44, 72]], +[71, "showblocks", 33, 923, [11, 76]], +[72, "sandwichclampcollapsed", 1341, 321, [70, 45, null]], +[73, "sandwichclampcollapsed", 1375, 196, [16, 7, null]], +[74, ["loadblock", 0], 33, 1175, [38, 75, 17]], +[75, ["string", "delete"], 91, 1175, [74, null]], +[76, "loadpalette", 33, 965, [71, 77, 15]], +[77, ["string", "turtle"], 94, 965, [76, null]], +[78, ["loadblock2arg", 0], 1359, 985, [67, 79, 98, 49]], +[79, ["string", "right"], 1417, 985, [78, null]], +[80, ["loadblock2arg", 0], 1359, 817, [64, 81, 97, 67]], +[81, ["string", "left"], 1417, 817, [80, null]], +[82, ["loadblock2arg", 0], 1359, 649, [61, 83, 96, 64]], +[83, ["string", "back"], 1417, 649, [82, null]], +[84, ["loadblock2arg", 0], 1393, 356, [20, 85, 92, 1]], +[85, ["string", "repeat"], 1451, 356, [84, null]], +[86, ["loadblock2arg", 0], 1359, 481, [46, 87, 95, 61]], +[87, ["string", "forward"], 1417, 481, [86, null]], +[88, ["loadblock2arg", 0], 1393, 690, [90, 89, 94, 23]], +[89, ["string", "right"], 1451, 690, [88, null]], +[90, ["loadblock2arg", 0], 1393, 606, [6, 91, 93, 88]], +[91, ["string", "forward"], 1451, 606, [90, null]], +[92, ["number", 4.0], 1451, 398, [84, null]], +[93, ["number", 100], 1451, 648, [90, null]], +[94, ["number", 90.0], 1451, 732, [88, null]], +[95, ["number", 100], 1417, 523, [86, null]], +[96, ["number", 100], 1417, 691, [82, null]], +[97, ["number", 90.0], 1417, 859, [80, null]], +[98, ["number", 90.0], 1417, 1027, [78, null]]] diff --git a/samples/basic-spiral.ta b/samples/basic-spiral.ta index 064dbef..68b4f04 100644 --- a/samples/basic-spiral.ta +++ b/samples/basic-spiral.ta @@ -1 +1,25 @@ -[[0, "clean", 257, 217, [19, 1]], [1, "storeinbox1", 257, 251, [0, 2, 3]], [2, ["number", 0], 375, 251, [1, null]], [3, "repeat", 257, 293, [1, 4, 5, null]], [4, ["number", 300], 308, 293, [3, null]], [5, "forward", 322, 353, [3, 6, 7]], [6, "box1", 393, 353, [5, null]], [7, "right", 322, 395, [5, 8, 9]], [8, ["number", 91], 380, 395, [7, null]], [9, "storeinbox1", 322, 437, [7, 10, 20]], [10, ["plus2", 0], 440, 437, [9, 11, 12]], [11, "box1", 494, 437, [10, null]], [12, ["number", 5], 494, 479, [10, null]], [13, "setcolor", 322, 513, [20, 14, null]], [14, ["product2", 20.0], 399, 513, [13, 15, 18]], [15, ["division2", 0], 453, 513, [14, 16, 17]], [16, "heading", 507, 513, [15, null]], [17, ["number", 360], 531, 555, [15, null]], [18, ["number", 100], 453, 595, [14, null]], [19, ["start", 2.0], 460, 50, [null, 0]], [20, ["vspace", 0], 322, 479, [9, 13]]] \ No newline at end of file +[[0, "clean", 528, 120, [15, 17]], +[1, ["number", 0.0], 596, 204, [17, null]], +[2, ["repeat", 105], 528, 246, [17, 3, 4, null]], +[3, ["number", 300], 587, 246, [2, null]], +[4, "forward", 546, 288, [2, 21, 5]], +[5, "right", 546, 330, [4, 6, 19]], +[6, ["number", 91], 604, 330, [5, null]], +[7, ["plus2", 0], 614, 414, [19, 23, 8]], +[8, ["number", 5], 668, 456, [7, null]], +[9, "setcolor", 546, 498, [16, 10, null]], +[10, ["product2", 20.0], 623, 498, [9, 11, 14]], +[11, ["division2", 0], 677, 498, [10, 12, 13]], +[12, "heading", 731, 498, [11, null]], +[13, ["number", 360], 755, 540, [11, null]], +[14, ["number", 100], 677, 580, [10, null]], +[15, ["start", 2.0], 528, 74, [null, 0]], +[16, ["vspace", 0], 546, 456, [19, 9]], +[17, ["storein", 0], 528, 162, [0, 18, 1, 2]], +[18, ["string", "my box"], 596, 162, [17, null]], +[19, ["storein", 0], 546, 372, [5, 20, 7, 16]], +[20, ["string", "my box"], 614, 372, [19, null]], +[21, "box", 617, 288, [4, 22, null]], +[22, ["string", "my box"], 672, 288, [21, null]], +[23, "box", 668, 414, [7, 24, null]], +[24, ["string", "my box"], 723, 414, [23, null]]] diff --git a/samples/basic-square.ta b/samples/basic-square.ta index 64887e9..4633b71 100644 --- a/samples/basic-square.ta +++ b/samples/basic-square.ta @@ -4,4 +4,4 @@ [3, ["number", 100], 386, 277, [2, null]], [4, "right", 315, 319, [2, 5, null]], [5, ["number", 90], 373, 319, [4, null]], -[6, ["start", 2.0], 460, 40, [null, 0]]] \ No newline at end of file +[6, ["start", 2.0], 250, 175, [null, 0]]] diff --git a/samples/game-basketball.ta b/samples/game-basketball.ta index 2596cb4..ffb5fb2 100644 --- a/samples/game-basketball.ta +++ b/samples/game-basketball.ta @@ -1,101 +1,114 @@ -[[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]]] +[[0, ["start", 2.0], 300, 180, [null, 92]], +[1, "skin", 300, 520, [24, 2, 45]], +[2, ["journal", "./samples/images/basketball.png"], 389, 520, [1, null]], +[3, ["setxy2", 60], 18, 268, [109, 5, 29, null]], +[4, "xcor", 130, 268, [5, null]], +[5, ["plus2", 0], 76, 268, [3, 4, 56]], +[6, ["setxy2", 0], 36, 762, [14, 26, 7, 95]], +[7, ["number", 0], 94, 804, [6, null]], +[8, "seth", 54, 614, [12, 11, 32]], +[9, ["number", 90], 166, 656, [11, null]], +[10, "heading", 166, 614, [11, null]], +[11, ["plus2", 0], 112, 614, [8, 10, 9]], +[12, "wait", 54, 572, [18, 13, 8]], +[13, ["number", 0.25], 112, 572, [12, null]], +[14, "penup", 36, 720, [48, 6]], +[15, "pendown", 36, 972, [43, null]], +[16, "hat", 0, 180, [null, 17, 109]], +[17, ["string", "parabola"], 58, 192, [16, null]], +[18, "stack", 54, 530, [36, 19, 12]], +[19, ["string", "parabola"], 112, 530, [18, null]], +[20, "show", 300, 436, [21, 23, 24]], +[21, "setscale", 300, 394, [60, 22, 20]], +[22, ["number", 100], 377, 394, [21, null]], +[23, ["journal", "./samples/images/basketball-court1-a.png"], 358, 436, [20, null]], +[24, "setscale", 300, 478, [20, 25, 1]], +[25, ["number", 33], 377, 478, [24, null]], +[26, "leftpos", 94, 762, [6, null]], +[27, ["number", 1], 200, 782, [31, null]], +[28, ["number", 40.0], 104, 888, [95, null]], +[29, ["plus2", 0], 76, 430, [3, 30, 57]], +[30, "ycor", 130, 430, [29, null]], +[31, ["minus2", 0], 122, 740, [105, 107, 27]], +[32, ["vspace", 0], 54, 656, [8, 105]], +[33, ["forever", 261], 18, 388, [110, 35, null]], +[34, ["vspace", 0], 54, 782, [105, 77]], +[35, ["ifelse", [189, 0]], +36, 422, [33, 38, 36, 37, null]], +[36, ["vspace", 0], 54, 488, [35, 18]], +[37, "stopstack", 54, 926, [35, null]], +[38, ["greater2", 0], 92, 388, [35, 40, 39, null]], +[39, ["number", -1], 162, 430, [38, null]], +[40, "ycor", 138, 388, [38, null]], +[41, "hat", 0, 300, [null, 42, 110]], +[42, ["string", "shoot"], 58, 312, [41, null]], +[43, "stack", 36, 930, [95, 44, 15]], +[44, ["string", "shoot"], 94, 930, [43, null]], +[45, "setpensize", 300, 562, [1, 46, 49]], +[46, ["number", 1], 402, 562, [45, null]], +[47, "volume", 86, 570, [93, null]], +[48, ["if", 126], 18, 654, [50, 51, 14, null]], +[49, ["forever", 0], 300, 604, [45, 75, null]], +[50, ["vspace", 0], 18, 612, [93, 48]], +[51, ["greater2", 0], 74, 620, [48, 97, 52, null]], +[52, ["number", 300], 144, 662, [51, null]], +[53, ["division2", 0], 184, 352, [56, 103, 55]], +[54, ["number", 30], 184, 310, [56, null]], +[55, "width", 262, 394, [53, null]], +[56, ["product2", 0], 130, 310, [5, 54, 53]], +[57, ["product2", 0], 130, 472, [29, 101, 58]], +[58, ["division2", 0], 184, 514, [57, 99, 59]], +[59, "height", 262, 556, [58, null]], +[60, ["fillscreen", 0], 300, 310, [90, 61, 62, 21]], +[61, ["number", 60], 382, 310, [60, null]], +[62, ["number", 80], 382, 352, [60, null]], +[63, "readpixel", 18, 648, [112, 72]], +[64, "pop", 120, 698, [81, null]], +[65, "pop", 138, 806, [82, null]], +[66, "pop", 156, 914, [83, null]], +[67, ["if", 147], 18, 732, [72, 81, 68, null]], +[68, ["vspace", 0], 36, 798, [67, 69]], +[69, ["if", 84], 36, 840, [68, 82, 70, null]], +[70, ["vspace", 0], 54, 906, [69, 71]], +[71, ["if", 21], 54, 948, [70, 83, 87, null]], +[72, ["vspace", 0], 18, 690, [63, 67]], +[73, "hat", 0, 440, [null, 74, 111]], +[74, ["string", "trigger"], 58, 452, [73, null]], +[75, "stack", 318, 638, [49, 76, null]], +[76, ["string", "trigger"], 376, 638, [75, null]], +[77, "stack", 54, 824, [34, 78, 91]], +[78, ["string", "test"], 112, 824, [77, null]], +[79, "hat", 0, 560, [null, 80, 112]], +[80, ["string", "test"], 58, 572, [79, null]], +[81, ["equal2", 0], 74, 698, [67, 64, 84, null]], +[82, ["equal2", 0], 92, 806, [69, 65, 85, null]], +[83, ["equal2", 0], 110, 914, [71, 66, 86, null]], +[84, ["number", 255], 120, 740, [81, null]], +[85, ["number", 255], 138, 848, [82, null]], +[86, ["number", 255], 156, 956, [83, null]], +[87, "print", 72, 1014, [71, 88, 89]], +[88, ["string", "BASKET"], 130, 1014, [87, null]], +[89, "stopstack", 72, 1056, [87, null]], +[90, "clean", 300, 268, [92, 60]], +[91, "clearheap", 54, 866, [77, null]], +[92, "hideblocks", 300, 226, [0, 90]], +[93, ["storein", 0], 18, 528, [111, 94, 47, 50]], +[94, ["string", "loudness"], 86, 528, [93, null]], +[95, ["storein", 0], 36, 846, [6, 96, 28, 43]], +[96, ["string", "box"], 104, 846, [95, null]], +[97, "box", 120, 620, [51, 98, null]], +[98, ["string", "loudness"], 175, 620, [97, null]], +[99, "box", 238, 514, [58, 100, null]], +[100, ["string", "loudness"], 293, 514, [99, null]], +[101, "box", 184, 472, [57, 102, null]], +[102, ["string", "box"], 239, 472, [101, null]], +[103, "box", 238, 352, [53, 104, null]], +[104, ["string", "loudness"], 293, 352, [103, null]], +[105, ["storein", 0], 54, 698, [32, 106, 31, 34]], +[106, ["string", "box"], 122, 698, [105, null]], +[107, "box", 176, 740, [31, 108, null]], +[108, ["string", "box"], 231, 740, [107, null]], +[109, "sandwichclampcollapsed", 0, 234, [16, 3, null]], +[110, "sandwichclampcollapsed", 0, 354, [41, 33, null]], +[111, "sandwichclampcollapsed", 0, 494, [73, 93, null]], +[112, "sandwichclampcollapsed", 0, 614, [79, 63, null]]] diff --git a/samples/game-continents.ta b/samples/game-continents.ta index 9a2f231..f56d5d9 100644 --- a/samples/game-continents.ta +++ b/samples/game-continents.ta @@ -1,277 +1,263 @@ -[[0, "hat", 260, 240, [null, 136, 266]], -[1, ["storein", 0], 260, 324, [266, 42, 54, 2]], -[2, ["storein", 0], 260, 408, [1, 43, 55, 3]], -[3, ["storein", 0], 260, 492, [2, 4, 51, 5]], -[4, ["string", "size"], 328, 492, [3, null]], -[5, ["storein", 0], 260, 576, [3, 6, 48, 7]], -[6, ["string", "name"], 328, 576, [5, null]], -[7, ["storein", 0], 260, 660, [5, 8, 99, 9]], -[8, ["string", "picture"], 328, 660, [7, null]], -[9, "stack", 260, 744, [7, 151, 227]], -[10, "hat", 600, 240, [null, 155, 254]], -[11, ["setxy2", 0], 600, 450, [268, 12, 274, 269]], -[12, ["number", 0], 658, 450, [11, null]], -[13, "show", 600, 576, [269, 14, 244]], -[14, ["plus2", 0], 658, 576, [13, 15, 16]], -[15, ["string", "Put the turtle in "], 712, 576, [14, null]], -[16, "box", 712, 618, [14, 17, null]], -[17, ["string", "name"], 767, 618, [16, null]], -[18, "hat", 300, 400, [null, 138, 264]], -[19, ["storein", 0], 300, 484, [264, 44, 56, 20]], -[20, ["storein", 0], 300, 568, [19, 45, 57, 21]], -[21, ["storein", 0], 300, 652, [20, 22, 52, 23]], -[22, ["string", "size"], 368, 652, [21, null]], -[23, ["storein", 0], 300, 736, [21, 24, 49, 25]], -[24, ["string", "name"], 368, 736, [23, null]], -[25, ["storein", 0], 300, 820, [23, 26, 100, 27]], -[26, ["string", "picture"], 368, 820, [25, null]], -[27, "stack", 300, 904, [25, 153, 229]], -[28, "hat", 320, 480, [null, 139, 263]], -[29, ["storein", 0], 320, 564, [263, 46, 74, 30]], -[30, ["storein", 0], 320, 648, [29, 47, 75, 31]], -[31, ["storein", 0], 320, 732, [30, 32, 53, 33]], -[32, ["string", "size"], 388, 732, [31, null]], -[33, ["storein", 0], 320, 816, [31, 34, 50, 35]], -[34, ["string", "name"], 388, 816, [33, null]], -[35, ["storein", 0], 320, 900, [33, 36, 101, 37]], -[36, ["string", "picture"], 388, 900, [35, null]], -[37, "stack", 320, 984, [35, 154, 225]], -[38, "hat", 620, 340, [null, 39, 255]], -[39, ["string", "map"], 678, 348, [38, null]], -[40, "setscale", 620, 424, [255, 41, 165]], -[41, ["number", 100], 697, 424, [40, null]], -[42, ["string", "x"], 328, 324, [1, null]], -[43, ["string", "y"], 328, 408, [2, null]], -[44, ["string", "x"], 368, 484, [19, null]], -[45, ["string", "y"], 368, 568, [20, null]], -[46, ["string", "x"], 388, 564, [29, null]], -[47, ["string", "y"], 388, 648, [30, null]], -[48, ["string", "Africa"], 328, 618, [5, null]], -[49, ["string", "North America"], 368, 778, [23, null]], -[50, ["string", "Eurasia"], 388, 858, [33, null]], -[51, ["number", 100], 328, 534, [3, null]], -[52, ["number", 150], 368, 694, [21, null]], -[53, ["number", 150], 388, 774, [31, null]], -[54, ["number", 20], 328, 366, [1, null]], -[55, ["number", 40], 328, 450, [2, null]], -[56, ["number", -350], 368, 526, [19, null]], -[57, ["number", 200], 368, 610, [20, null]], -[58, "hat", 240, 160, [null, 135, 267]], -[59, ["storein", 0], 240, 244, [267, 60, 61, 62]], -[60, ["string", "x"], 308, 244, [59, null]], -[61, ["number", -300], 308, 286, [59, null]], -[62, ["storein", 0], 240, 328, [59, 63, 64, 65]], -[63, ["string", "y"], 308, 328, [62, null]], -[64, ["number", -50], 308, 370, [62, null]], -[65, ["storein", 0], 240, 412, [62, 66, 67, 68]], -[66, ["string", "size"], 308, 412, [65, null]], -[67, ["number", 100], 308, 454, [65, null]], -[68, ["storein", 0], 240, 496, [65, 69, 70, 71]], -[69, ["string", "name"], 308, 496, [68, null]], -[70, ["string", "South America"], 308, 538, [68, null]], -[71, ["storein", 0], 240, 580, [68, 72, 102, 73]], -[72, ["string", "picture"], 308, 580, [71, null]], -[73, "stack", 240, 664, [71, 150, 228]], -[74, ["number", 250], 388, 606, [29, null]], -[75, ["number", 200], 388, 690, [30, null]], -[76, "hat", 280, 320, [null, 137, 265]], -[77, ["storein", 0], 280, 404, [265, 78, 79, 80]], -[78, ["string", "x"], 348, 404, [77, null]], -[79, ["number", 390], 348, 446, [77, null]], -[80, ["storein", 0], 280, 488, [77, 81, 82, 83]], -[81, ["string", "y"], 348, 488, [80, null]], -[82, ["number", -75], 348, 530, [80, null]], -[83, ["storein", 0], 280, 572, [80, 84, 85, 86]], -[84, ["string", "size"], 348, 572, [83, null]], -[85, ["number", 100], 348, 614, [83, null]], -[86, ["storein", 0], 280, 656, [83, 87, 88, 89]], -[87, ["string", "name"], 348, 656, [86, null]], -[88, ["string", "Australia"], 348, 698, [86, null]], -[89, ["storein", 0], 280, 740, [86, 90, 224, 91]], -[90, ["string", "picture"], 348, 740, [89, null]], -[91, "stack", 280, 824, [89, 152, 226]], -[92, ["start", 2.0], 560, 60, [null, 262]], -[93, "stack", 560, 136, [262, 94, 95]], -[94, ["string", "setup"], 618, 136, [93, null]], -[95, "stack", 560, 178, [93, 96, 97]], -[96, ["string", "map"], 618, 178, [95, null]], -[97, "stack", 560, 220, [95, 140, 98]], -[98, "stack", 560, 262, [97, 141, 142]], -[99, ["journal", "./samples/images/Africa.png"], 328, 702, [7, null]], -[100, ["journal", "./samples/images/North_America.png"], 368, 862, [25, null]], -[101, ["journal", "./samples/images/Eurasia.png"], 388, 942, [35, null]], -[102, ["journal", "./samples/images/South_America.png"], 308, 622, [71, null]], -[103, "hat", 680, 540, [null, 104, 260]], -[104, ["string", "star"], 738, 548, [103, null]], -[105, "setpensize", 680, 624, [260, 106, 107]], -[106, ["number", 15], 782, 624, [105, null]], -[107, ["setxy2", 0], 680, 666, [105, 108, 109, 110]], -[108, ["number", 0], 738, 666, [107, null]], -[109, ["number", 0], 738, 708, [107, null]], -[110, "repeat", 680, 750, [107, 111, 236, 261]], -[111, ["number", 5], 731, 750, [110, null]], -[112, "setcolor", 745, 852, [236, 113, 114]], -[113, "heading", 822, 852, [112, null]], -[114, "forward", 745, 894, [112, 115, 116]], -[115, ["number", 200], 816, 894, [114, null]], -[116, "right", 745, 936, [114, 117, null]], -[117, ["number", 144], 803, 936, [116, null]], -[118, ["setxy2", 20.0], 600, 702, [270, 247, 248, 253]], -[119, ["number", -150], 712, 702, [247, null]], -[120, ["number", 100], 712, 784, [248, null]], -[121, "forever", 600, 910, [271, 122, 230]], -[122, "stack", 661, 928, [121, 123, 241]], -[123, ["string", "calculate distance"], 719, 928, [122, null]], -[124, "if", 661, 1012, [241, 125, 243, 242]], -[125, ["less2", 0], 699, 978, [124, 126, 128, null]], -[126, "box", 745, 978, [125, 127, null]], -[127, ["string", "distance"], 800, 978, [126, null]], -[128, ["product2", 0], 769, 1020, [125, 129, 131]], -[129, "box", 823, 1020, [128, 130, null]], -[130, ["string", "size"], 878, 1020, [129, null]], -[131, "box", 823, 1062, [128, 132, null]], -[132, ["string", "scale"], 878, 1062, [131, null]], -[133, "wait", 661, 1420, [242, 134, null]], -[134, ["number", 1], 719, 1420, [133, null]], -[135, ["string", "Q1"], 298, 168, [58, null]], -[136, ["string", "Q2"], 318, 248, [0, null]], -[137, ["string", "Q3"], 338, 328, [76, null]], -[138, ["string", "Q4"], 358, 408, [18, null]], -[139, ["string", "Q5"], 378, 488, [28, null]], -[140, ["string", "Q1"], 618, 220, [97, null]], -[141, ["string", "Q2"], 618, 262, [98, null]], -[142, "stack", 560, 304, [98, 144, 143]], -[143, "stack", 560, 346, [142, 145, 146]], -[144, ["string", "Q3"], 618, 304, [142, null]], -[145, ["string", "Q4"], 618, 346, [143, null]], -[146, "stack", 560, 388, [143, 149, 147]], -[147, "stack", 560, 430, [146, 148, 238]], -[148, ["string", "star"], 618, 430, [147, null]], -[149, ["string", "Q5"], 618, 388, [146, null]], -[150, ["string", "go"], 298, 664, [73, null]], -[151, ["string", "go"], 318, 744, [9, null]], -[152, ["string", "go"], 338, 824, [91, null]], -[153, ["string", "go"], 358, 904, [27, null]], -[154, ["string", "go"], 378, 984, [37, null]], -[155, ["string", "go"], 658, 248, [10, null]], -[156, ["setxy2", 0], 713, 1164, [272, 157, 158, 273]], -[157, ["number", 0], 771, 1164, [156, null]], -[158, ["number", 0], 771, 1206, [156, null]], -[159, "setscale", 713, 1290, [273, 160, 161]], -[160, ["number", 100], 790, 1290, [159, null]], -[161, "show", 713, 1332, [159, 162, 164]], -[162, "box", 771, 1332, [161, 163, null]], -[163, ["string", "picture"], 826, 1332, [162, null]], -[164, "stopstack", 713, 1374, [161, null]], -[165, ["setxy2", 0], 620, 466, [40, 166, 167, 168]], -[166, ["number", 0], 678, 466, [165, null]], -[167, ["number", 0], 678, 508, [165, null]], -[168, "show", 620, 550, [165, 169, 231]], -[169, ["journal", "./samples/images/World_Map.png"], 678, 550, [168, null]], -[170, "hat", 580, 140, [null, 171, 259]], -[171, ["string", "setup"], 638, 148, [170, null]], -[172, ["storein", 0], 580, 224, [259, 173, 174, 240]], -[173, ["string", "scale"], 648, 224, [172, null]], -[174, ["division2", 0], 648, 266, [172, 175, 176]], -[175, "height", 702, 266, [174, null]], -[176, ["number", 900], 726, 308, [174, null]], -[177, ["storein", 0], 580, 350, [240, 178, 179, 239]], -[178, ["string", "box"], 648, 350, [177, null]], -[179, ["product2", 0], 648, 392, [177, 180, 181]], -[180, ["number", -200], 702, 392, [179, null]], -[181, "box", 702, 434, [179, 182, null]], -[182, ["string", "scale"], 757, 434, [181, null]], -[183, "hideblocks", 580, 476, [239, 184]], -[184, "clean", 580, 518, [183, 185]], -[185, "settextsize", 580, 560, [184, 186, 233]], -[186, ["product2", 0], 684, 560, [185, 187, 188]], -[187, ["number", 24], 738, 560, [186, null]], -[188, "box", 738, 602, [186, 189, null]], -[189, ["string", "scale"], 793, 602, [188, null]], -[190, "hat", 660, 440, [null, 191, 256]], -[191, ["string", "calculate distance"], 718, 448, [190, null]], -[192, ["storein", 0], 660, 524, [256, 193, 194, 258]], -[193, ["string", "dx"], 728, 524, [192, null]], -[194, ["minus2", 20.0], 728, 566, [192, 195, 200]], -[195, ["product2", 0], 782, 566, [194, 196, 198]], -[196, "box", 836, 566, [195, 197, null]], -[197, ["string", "x"], 891, 566, [196, null]], -[198, "box", 836, 608, [195, 199, null]], -[199, ["string", "scale"], 891, 608, [198, null]], -[200, "xcor", 806, 648, [194, null]], -[201, ["storein", 0], 660, 690, [258, 202, 203, 257]], -[202, ["string", "dy"], 728, 690, [201, null]], -[203, ["minus2", 20.0], 728, 732, [201, 204, 209]], -[204, ["product2", 0], 782, 732, [203, 205, 207]], -[205, "box", 836, 732, [204, 206, null]], -[206, ["string", "y"], 891, 732, [205, null]], -[207, "box", 836, 774, [204, 208, null]], -[208, ["string", "scale"], 891, 774, [207, null]], -[209, "ycor", 806, 814, [203, null]], -[210, ["storein", 0], 660, 856, [257, 211, 212, 232]], -[211, ["string", "distance"], 728, 856, [210, null]], -[212, "sqrt", 728, 898, [210, 213]], -[213, ["plus2", 20.0], 782, 898, [212, 214, 219]], -[214, ["product2", 0], 836, 898, [213, 215, 217]], -[215, "box", 890, 898, [214, 216, null]], -[216, ["string", "dx"], 945, 898, [215, null]], -[217, "box", 890, 940, [214, 218, null]], -[218, ["string", "dx"], 945, 940, [217, null]], -[219, ["product2", 0], 836, 980, [213, 220, 222]], -[220, "box", 890, 980, [219, 221, null]], -[221, ["string", "dy"], 945, 980, [220, null]], -[222, "box", 890, 1022, [219, 223, null]], -[223, ["string", "dy"], 945, 1022, [222, null]], -[224, ["journal", "./samples/images/Australia.png"], 348, 782, [89, null]], -[225, ["sandwichcollapsed", 1], 320, 564, [37, null]], -[226, ["sandwichcollapsed", 1], 280, 404, [91, null]], -[227, ["sandwichcollapsed", 1], 260, 324, [9, null]], -[228, ["sandwichcollapsed", 1], 240, 244, [73, null]], -[229, ["sandwichcollapsed", 1], 300, 484, [27, null]], -[230, ["sandwichcollapsed", 1], 600, 324, [121, null]], -[231, ["sandwichcollapsed", 1], 620, 424, [168, null]], -[232, ["sandwichcollapsed", 1], 660, 524, [210, null]], -[233, ["sandwichcollapsed", 1], 580, 224, [185, null]], -[234, "showblocks", 680, 990, [261, 235]], -[235, ["sandwichcollapsed", 1], 680, 624, [234, null]], -[236, "wait", 745, 810, [110, 237, 112]], -[237, ["number", 1], 803, 810, [236, null]], -[238, ["sandwichcollapsed", 1], 560, 136, [147, null]], -[239, ["vspace", 0], 580, 434, [177, 183]], -[240, ["vspace", 0], 580, 308, [172, 177]], -[241, ["vspace", 0], 661, 970, [122, 124]], -[242, ["vspace", 140.0], 661, 1098, [124, 133]], -[243, ["vspace", 0], 713, 1080, [124, 272]], -[244, ["vspace", 0], 600, 618, [13, 270]], -[245, "setscale", 600, 366, [275, 246, 268]], -[246, ["number", 50], 677, 366, [245, null]], -[247, ["product2", 0], 658, 702, [118, 119, 251]], -[248, ["product2", 0], 658, 784, [118, 120, 249]], -[249, "box", 712, 826, [248, 250, null]], -[250, ["string", "scale"], 767, 826, [249, null]], -[251, "box", 712, 744, [247, 252, null]], -[252, ["string", "scale"], 767, 744, [251, null]], -[253, ["vspace", 0], 600, 826, [118, 271]], -[254, "sandwichtop_no_arm_no_label", 582, 290, [10, 275]], -[255, "sandwichtop_no_arm_no_label", 602, 390, [38, 40]], -[256, "sandwichtop_no_arm_no_label", 642, 490, [190, 192]], -[257, ["vspace", 20], 660, 774, [201, 210]], -[258, ["vspace", 20], 660, 608, [192, 201]], -[259, "sandwichtop_no_arm_no_label", 562, 190, [170, 172]], -[260, "sandwichtop_no_arm_no_label", 662, 590, [103, 105]], -[261, ["vspace", 60], 680, 828, [110, 234]], -[262, "sandwichtop_no_arm_no_label", 542, 102, [92, 93]], -[263, "sandwichtop_no_arm_no_label", 302, 530, [28, 29]], -[264, "sandwichtop_no_arm_no_label", 282, 450, [18, 19]], -[265, "sandwichtop_no_arm_no_label", 262, 370, [76, 77]], -[266, "sandwichtop_no_arm_no_label", 242, 290, [0, 1]], -[267, "sandwichtop_no_arm_no_label", 222, 210, [58, 59]], -[268, "penup", 600, 408, [245, 11]], -[269, "pendown", 600, 534, [11, 13]], -[270, "penup", 600, 660, [244, 118]], -[271, "pendown", 600, 868, [253, 121]], -[272, "penup", 713, 1122, [243, 156]], -[273, "pendown", 713, 1248, [156, 159]], -[274, ["number", 0], 658, 492, [11, null]], -[275, "seth", 600, 324, [254, 276, 245]], -[276, ["number", 0], 658, 324, [275, null]]] +[[0, "hat", 449, 231, [null, 136, 250]], +[1, ["storein", 0], 467, 319, [250, 42, 54, 2]], +[2, ["storein", 0], 467, 403, [1, 43, 55, 3]], +[3, ["storein", 0], 467, 487, [2, 4, 51, 5]], +[4, ["string", "size"], 535, 487, [3, null]], +[5, ["storein", 0], 467, 571, [3, 6, 48, 7]], +[6, ["string", "name"], 535, 571, [5, null]], +[7, ["storein", 0], 467, 655, [5, 8, 99, 9]], +[8, ["string", "picture"], 535, 655, [7, null]], +[9, "stack", 467, 739, [7, 151, null]], +[10, "hat", 112, 364, [null, 155, 239]], +[11, ["setxy2", 0], 130, 536, [252, 12, 258, 253]], +[12, ["number", 0], 188, 536, [11, null]], +[13, "show", 130, 704, [259, 14, 254]], +[14, ["plus2", 0], 188, 704, [13, 15, 16]], +[15, ["string", "Put the turtle in "], 242, 704, [14, null]], +[16, "box", 242, 746, [14, 17, null]], +[17, ["string", "name"], 297, 746, [16, null]], +[18, "hat", 560, 322, [null, 138, 248]], +[19, ["storein", 0], 578, 410, [248, 44, 56, 20]], +[20, ["storein", 0], 578, 494, [19, 45, 57, 21]], +[21, ["storein", 0], 578, 578, [20, 22, 52, 23]], +[22, ["string", "size"], 646, 578, [21, null]], +[23, ["storein", 0], 578, 662, [21, 24, 49, 25]], +[24, ["string", "name"], 646, 662, [23, null]], +[25, ["storein", 0], 578, 746, [23, 26, 100, 27]], +[26, ["string", "picture"], 646, 746, [25, null]], +[27, "stack", 578, 830, [25, 153, null]], +[28, "hat", 451, 422, [null, 139, 247]], +[29, ["storein", 0], 469, 510, [247, 46, 74, 30]], +[30, ["storein", 0], 469, 594, [29, 47, 75, 31]], +[31, ["storein", 0], 469, 678, [30, 32, 53, 33]], +[32, ["string", "size"], 537, 678, [31, null]], +[33, ["storein", 0], 469, 762, [31, 34, 50, 35]], +[34, ["string", "name"], 537, 762, [33, null]], +[35, ["storein", 0], 469, 846, [33, 36, 101, 37]], +[36, ["string", "picture"], 537, 846, [35, null]], +[37, "stack", 469, 930, [35, 154, null]], +[38, "hat", 674, 214, [null, 39, 240]], +[39, ["string", "map"], 732, 226, [38, null]], +[40, "setscale", 692, 302, [240, 41, 165]], +[41, ["number", 100], 769, 302, [40, null]], +[42, ["string", "x"], 535, 319, [1, null]], +[43, ["string", "y"], 535, 403, [2, null]], +[44, ["string", "x"], 646, 410, [19, null]], +[45, ["string", "y"], 646, 494, [20, null]], +[46, ["string", "x"], 537, 510, [29, null]], +[47, ["string", "y"], 537, 594, [30, null]], +[48, ["string", "Africa"], 535, 613, [5, null]], +[49, ["string", "North America"], 646, 704, [23, null]], +[50, ["string", "Eurasia"], 537, 804, [33, null]], +[51, ["number", 100], 535, 529, [3, null]], +[52, ["number", 150], 646, 620, [21, null]], +[53, ["number", 150], 537, 720, [31, null]], +[54, ["number", 20], 535, 361, [1, null]], +[55, ["number", 40], 535, 445, [2, null]], +[56, ["number", -350], 646, 452, [19, null]], +[57, ["number", 200], 646, 536, [20, null]], +[58, "hat", 222, 251, [null, 135, 251]], +[59, ["storein", 0], 240, 339, [251, 60, 61, 62]], +[60, ["string", "x"], 308, 339, [59, null]], +[61, ["number", -300], 308, 381, [59, null]], +[62, ["storein", 0], 240, 423, [59, 63, 64, 65]], +[63, ["string", "y"], 308, 423, [62, null]], +[64, ["number", -50], 308, 465, [62, null]], +[65, ["storein", 0], 240, 507, [62, 66, 67, 68]], +[66, ["string", "size"], 308, 507, [65, null]], +[67, ["number", 100], 308, 549, [65, null]], +[68, ["storein", 0], 240, 591, [65, 69, 70, 71]], +[69, ["string", "name"], 308, 591, [68, null]], +[70, ["string", "South America"], 308, 633, [68, null]], +[71, ["storein", 0], 240, 675, [68, 72, 102, 73]], +[72, ["string", "picture"], 308, 675, [71, null]], +[73, "stack", 240, 759, [71, 150, null]], +[74, ["number", 250], 537, 552, [29, null]], +[75, ["number", 200], 537, 636, [30, null]], +[76, "hat", 334, 338, [null, 137, 249]], +[77, ["storein", 0], 352, 426, [249, 78, 79, 80]], +[78, ["string", "x"], 420, 426, [77, null]], +[79, ["number", 390], 420, 468, [77, null]], +[80, ["storein", 0], 352, 510, [77, 81, 82, 83]], +[81, ["string", "y"], 420, 510, [80, null]], +[82, ["number", -75], 420, 552, [80, null]], +[83, ["storein", 0], 352, 594, [80, 84, 85, 86]], +[84, ["string", "size"], 420, 594, [83, null]], +[85, ["number", 100], 420, 636, [83, null]], +[86, ["storein", 0], 352, 678, [83, 87, 88, 89]], +[87, ["string", "name"], 420, 678, [86, null]], +[88, ["string", "Australia"], 420, 720, [86, null]], +[89, ["storein", 0], 352, 762, [86, 90, 224, 91]], +[90, ["string", "picture"], 420, 762, [89, null]], +[91, "stack", 352, 846, [89, 152, null]], +[92, ["start", 2.0], 82, 255, [null, 246]], +[93, "stack", 100, 335, [246, 94, 95]], +[94, ["string", "setup"], 158, 335, [93, null]], +[95, "stack", 100, 377, [93, 96, 97]], +[96, ["string", "map"], 158, 377, [95, null]], +[97, "stack", 100, 419, [95, 140, 98]], +[98, "stack", 100, 461, [97, 141, 142]], +[99, ["journal", "./samples/images/Africa.png"], 535, 697, [7, null]], +[100, ["journal", "./samples/images/North_America.png"], 646, 788, [25, null]], +[101, ["journal", "./samples/images/Eurasia.png"], 537, 888, [35, null]], +[102, ["journal", "./samples/images/South_America.png"], 308, 717, [71, null]], +[103, "hat", 692, 391, [null, 104, 245]], +[104, ["string", "star"], 750, 403, [103, null]], +[105, "setpensize", 710, 479, [245, 106, 107]], +[106, ["number", 15], 812, 479, [105, null]], +[107, ["setxy2", 0], 710, 521, [105, 108, 109, 110]], +[108, ["number", 0], 768, 521, [107, null]], +[109, ["number", 0], 768, 563, [107, null]], +[110, ["repeat", 63], 710, 605, [107, 111, 226, 225]], +[111, ["number", 5], 769, 605, [110, null]], +[112, "setcolor", 728, 689, [226, 113, 114]], +[113, "heading", 805, 689, [112, null]], +[114, "forward", 728, 731, [112, 115, 116]], +[115, ["number", 200], 799, 731, [114, null]], +[116, "right", 728, 773, [114, 117, null]], +[117, ["number", 144], 786, 773, [116, null]], +[118, ["setxy2", 20.0], 130, 788, [254, 233, 234, 255]], +[119, ["number", -150], 242, 788, [233, null]], +[120, ["number", 100], 242, 870, [234, null]], +[121, ["forever", 252], 130, 954, [255, 122, null]], +[122, "stack", 148, 988, [121, 123, 230]], +[123, ["string", "calculate distance"], 206, 988, [122, null]], +[124, ["if", 147], 148, 1072, [230, 125, 256, 133]], +[125, ["less2", 0], 204, 1038, [124, 126, 128, null]], +[126, "box", 250, 1038, [125, 127, null]], +[127, ["string", "distance"], 305, 1038, [126, null]], +[128, ["product2", 0], 274, 1080, [125, 129, 131]], +[129, "box", 328, 1080, [128, 130, null]], +[130, ["string", "size"], 383, 1080, [129, null]], +[131, "box", 328, 1122, [128, 132, null]], +[132, ["string", "scale"], 383, 1122, [131, null]], +[133, "wait", 148, 1492, [124, 134, null]], +[134, ["number", 1], 206, 1492, [133, null]], +[135, ["string", "Q1"], 280, 263, [58, null]], +[136, ["string", "Q2"], 507, 243, [0, null]], +[137, ["string", "Q3"], 392, 350, [76, null]], +[138, ["string", "Q4"], 618, 334, [18, null]], +[139, ["string", "Q5"], 509, 434, [28, null]], +[140, ["string", "Q1"], 158, 419, [97, null]], +[141, ["string", "Q2"], 158, 461, [98, null]], +[142, "stack", 100, 503, [98, 144, 143]], +[143, "stack", 100, 545, [142, 145, 146]], +[144, ["string", "Q3"], 158, 503, [142, null]], +[145, ["string", "Q4"], 158, 545, [143, null]], +[146, "stack", 100, 587, [143, 149, 147]], +[147, "stack", 100, 629, [146, 148, null]], +[148, ["string", "star"], 158, 629, [147, null]], +[149, ["string", "Q5"], 158, 587, [146, null]], +[150, ["string", "go"], 298, 759, [73, null]], +[151, ["string", "go"], 525, 739, [9, null]], +[152, ["string", "go"], 410, 846, [91, null]], +[153, ["string", "go"], 636, 830, [27, null]], +[154, ["string", "go"], 527, 930, [37, null]], +[155, ["string", "go"], 170, 376, [10, null]], +[156, ["setxy2", 0], 166, 1180, [256, 157, 158, 257]], +[157, ["number", 0], 224, 1180, [156, null]], +[158, ["number", 0], 224, 1222, [156, null]], +[159, "setscale", 166, 1306, [257, 160, 261]], +[160, ["number", 100], 243, 1306, [159, null]], +[161, "show", 166, 1390, [261, 162, 164]], +[162, "box", 224, 1390, [161, 163, null]], +[163, ["string", "picture"], 279, 1390, [162, null]], +[164, "stopstack", 166, 1432, [161, null]], +[165, ["setxy2", 0], 692, 344, [40, 166, 167, 168]], +[166, ["number", 0], 750, 344, [165, null]], +[167, ["number", 0], 750, 386, [165, null]], +[168, "show", 692, 428, [165, 169, null]], +[169, ["journal", "./samples/images/World_Map.png"], 750, 428, [168, null]], +[170, "hat", 237, 437, [null, 171, 244]], +[171, ["string", "setup"], 295, 449, [170, null]], +[172, ["storein", 0], 255, 525, [244, 173, 174, 229]], +[173, ["string", "scale"], 323, 525, [172, null]], +[174, ["division2", 0], 323, 567, [172, 175, 176]], +[175, "height", 377, 567, [174, null]], +[176, ["number", 900], 401, 609, [174, null]], +[177, ["storein", 0], 255, 651, [229, 178, 179, 228]], +[178, ["string", "box"], 323, 651, [177, null]], +[179, ["product2", 0], 323, 693, [177, 180, 181]], +[180, ["number", -200], 377, 693, [179, null]], +[181, "box", 377, 735, [179, 182, null]], +[182, ["string", "scale"], 432, 735, [181, null]], +[183, "hideblocks", 255, 777, [228, 184]], +[184, "clean", 255, 819, [183, 185]], +[185, "settextsize", 255, 861, [184, 186, null]], +[186, ["product2", 0], 359, 861, [185, 187, 188]], +[187, ["number", 24], 413, 861, [186, null]], +[188, "box", 413, 903, [186, 189, null]], +[189, ["string", "scale"], 468, 903, [188, null]], +[190, "hat", 7, 459, [null, 191, 241]], +[191, ["string", "calculate distance"], 65, 471, [190, null]], +[192, ["storein", 0], 25, 547, [241, 193, 194, 243]], +[193, ["string", "dx"], 93, 547, [192, null]], +[194, ["minus2", 20.0], 93, 589, [192, 195, 200]], +[195, ["product2", 0], 147, 589, [194, 196, 198]], +[196, "box", 201, 589, [195, 197, null]], +[197, ["string", "x"], 256, 589, [196, null]], +[198, "box", 201, 631, [195, 199, null]], +[199, ["string", "scale"], 256, 631, [198, null]], +[200, "xcor", 171, 671, [194, null]], +[201, ["storein", 0], 25, 713, [243, 202, 203, 242]], +[202, ["string", "dy"], 93, 713, [201, null]], +[203, ["minus2", 20.0], 93, 755, [201, 204, 209]], +[204, ["product2", 0], 147, 755, [203, 205, 207]], +[205, "box", 201, 755, [204, 206, null]], +[206, ["string", "y"], 256, 755, [205, null]], +[207, "box", 201, 797, [204, 208, null]], +[208, ["string", "scale"], 256, 797, [207, null]], +[209, "ycor", 171, 837, [203, null]], +[210, ["storein", 0], 25, 879, [242, 211, 212, null]], +[211, ["string", "distance"], 93, 879, [210, null]], +[212, "sqrt", 93, 921, [210, 213]], +[213, ["plus2", 20.0], 147, 921, [212, 214, 219]], +[214, ["product2", 0], 201, 921, [213, 215, 217]], +[215, "box", 255, 921, [214, 216, null]], +[216, ["string", "dx"], 310, 921, [215, null]], +[217, "box", 255, 963, [214, 218, null]], +[218, ["string", "dx"], 310, 963, [217, null]], +[219, ["product2", 0], 201, 1003, [213, 220, 222]], +[220, "box", 255, 1003, [219, 221, null]], +[221, ["string", "dy"], 310, 1003, [220, null]], +[222, "box", 255, 1045, [219, 223, null]], +[223, ["string", "dy"], 310, 1045, [222, null]], +[224, ["journal", "./samples/images/Australia.png"], 420, 804, [89, null]], +[225, "showblocks", 710, 833, [110, null]], +[226, "wait", 728, 647, [110, 227, 112]], +[227, ["number", 1], 786, 647, [226, null]], +[228, ["vspace", 0], 255, 735, [177, 183]], +[229, ["vspace", 0], 255, 609, [172, 177]], +[230, ["vspace", 0], 148, 1030, [122, 124]], +[231, "setscale", 130, 452, [239, 232, 252]], +[232, ["number", 50], 207, 452, [231, null]], +[233, ["product2", 0], 188, 788, [118, 119, 237]], +[234, ["product2", 0], 188, 870, [118, 120, 235]], +[235, "box", 242, 912, [234, 236, null]], +[236, ["string", "scale"], 297, 912, [235, null]], +[237, "box", 242, 830, [233, 238, null]], +[238, ["string", "scale"], 297, 830, [237, null]], +[239, "sandwichclampcollapsed", 112, 418, [10, 231, null]], +[240, "sandwichclampcollapsed", 674, 268, [38, 40, null]], +[241, "sandwichclampcollapsed", 7, 513, [190, 192, null]], +[242, ["vspace", 20], 25, 797, [201, 210]], +[243, ["vspace", 20], 25, 631, [192, 201]], +[244, "sandwichclampcollapsed", 237, 491, [170, 172, null]], +[245, "sandwichclampcollapsed", 692, 445, [103, 105, null]], +[246, "sandwichclampcollapsed", 82, 301, [92, 93, null]], +[247, "sandwichclampcollapsed", 451, 476, [28, 29, null]], +[248, "sandwichclampcollapsed", 560, 376, [18, 19, null]], +[249, "sandwichclampcollapsed", 334, 392, [76, 77, null]], +[250, "sandwichclampcollapsed", 449, 285, [0, 1, null]], +[251, "sandwichclampcollapsed", 222, 305, [58, 59, null]], +[252, "penup", 130, 494, [231, 11]], +[253, "pendown", 130, 620, [11, 259]], +[254, "penup", 130, 746, [13, 118]], +[255, "pendown", 130, 912, [118, 121]], +[256, "penup", 166, 1138, [124, 156]], +[257, "pendown", 166, 1264, [156, 159]], +[258, ["number", 0], 188, 578, [11, null]], +[259, "seth", 130, 662, [253, 260, 13]], +[260, ["number", 0], 188, 662, [259, null]], +[261, "seth", 166, 1348, [159, 262, 161]], +[262, ["number", 0], 224, 1348, [261, null]]] diff --git a/samples/game-find-boston.ta b/samples/game-find-boston.ta index cdb3dcf..a585024 100644 --- a/samples/game-find-boston.ta +++ b/samples/game-find-boston.ta @@ -1 +1,379 @@ -[[0, ["string", "North America"], 195, 556, [243, null]], [1, ["journal", "./samples/images/North_America.jpg"], 195, 640, [245, null]], [2, ["number", 150], 383, 472, [240, null]], [3, ["number", 114], 383, 388, [234, null]], [4, "hat", 123, 467, [null, 5, 361]], [5, ["string", "Q3"], 181, 475, [4, null]], [6, ["storein", 0], 123, 551, [361, 7, 213, 9]], [7, ["string", "x"], 191, 551, [6, null]], [8, ["number", 500], 379, 593, [210, null]], [9, ["storein", 0], 123, 635, [6, 10, 215, 12]], [10, ["string", "y"], 191, 635, [9, null]], [11, ["number", 300], 379, 677, [214, null]], [12, ["storein", 0], 123, 719, [9, 13, 221, 15]], [13, ["string", "size"], 191, 719, [12, null]], [14, ["number", 100], 379, 761, [220, null]], [15, ["storein", 0], 123, 803, [12, 16, 17, 18]], [16, ["string", "name"], 191, 803, [15, null]], [17, ["string", "New England"], 191, 845, [15, null]], [18, ["storein", 0], 123, 887, [15, 19, 20, 21]], [19, ["string", "picture"], 191, 887, [18, null]], [20, ["journal", "./samples/images/New-England.png"], 191, 929, [18, null]], [21, "stack", 123, 971, [18, 22, 222]], [22, ["string", "go"], 181, 971, [21, null]], [23, ["number", -330], 378, 749, [309, null]], [24, ["number", -240], 378, 833, [315, null]], [25, ["number", 100], 378, 917, [321, null]], [26, ["string", "Massachusetts"], 190, 1001, [324, null]], [27, ["journal", "./samples/images/Massachuetts.png"], 190, 1085, [326, null]], [28, "hat", 1042, 655, [null, 29, 356]], [29, ["string", "calculate distance"], 1100, 663, [28, null]], [30, ["storein", 0], 1042, 739, [356, 31, 32, 355]], [31, ["string", "dx"], 1110, 739, [30, null]], [32, ["minus2", 20.0], 1110, 781, [30, 33, 38]], [33, ["product2", 0], 1164, 781, [32, 34, 36]], [34, "box", 1218, 781, [33, 35, null]], [35, ["string", "x"], 1273, 781, [34, null]], [36, "box", 1218, 823, [33, 37, null]], [37, ["string", "scalex"], 1273, 823, [36, null]], [38, "xcor", 1188, 863, [32, null]], [39, ["storein", 0], 1042, 905, [355, 40, 41, 354]], [40, ["string", "dy"], 1110, 905, [39, null]], [41, ["minus2", 20.0], 1110, 947, [39, 42, 47]], [42, ["product2", 0], 1164, 947, [41, 43, 45]], [43, "box", 1218, 947, [42, 44, null]], [44, ["string", "y"], 1273, 947, [43, null]], [45, "box", 1218, 989, [42, 46, null]], [46, ["string", "scaley"], 1273, 989, [45, null]], [47, "ycor", 1188, 1029, [41, null]], [48, ["storein", 0], 1042, 1071, [354, 49, 50, 202]], [49, ["string", "distance"], 1110, 1071, [48, null]], [50, "sqrt", 1110, 1113, [48, 51]], [51, ["plus2", 20.0], 1164, 1113, [50, 52, 57]], [52, ["product2", 0], 1218, 1113, [51, 53, 55]], [53, "box", 1272, 1113, [52, 54, null]], [54, ["string", "dx"], 1327, 1113, [53, null]], [55, "box", 1272, 1155, [52, 56, null]], [56, ["string", "dx"], 1327, 1155, [55, null]], [57, ["product2", 0], 1218, 1195, [51, 58, 60]], [58, "box", 1272, 1195, [57, 59, null]], [59, ["string", "dy"], 1327, 1195, [58, null]], [60, "box", 1272, 1237, [57, 61, null]], [61, ["string", "dy"], 1327, 1237, [60, null]], [62, ["number", 120], 380, 888, [282, null]], [63, ["number", 190], 380, 972, [288, null]], [64, ["number", 50], 380, 1056, [294, null]], [65, ["string", "Boston"], 192, 1140, [297, null]], [66, ["journal", "./samples/images/Boston.png"], 192, 1224, [299, null]], [67, "hat", 1042, 788, [null, 68, 353]], [68, ["string", "map"], 1100, 796, [67, null]], [69, "setscale", 1042, 872, [353, 70, 71]], [70, ["number", 100], 1119, 872, [69, null]], [71, ["setxy2", 0], 1042, 914, [69, 72, 73, 74]], [72, ["number", 0], 1100, 914, [71, null]], [73, ["number", 0], 1100, 956, [71, null]], [74, "show", 1042, 998, [71, 75, 203]], [75, ["journal", "./samples/images/earth.png"], 1100, 998, [74, null]], [76, "hat", 1061, 358, [null, 77, 357]], [77, ["string", "setup"], 1119, 366, [76, null]], [78, ["storein", 0], 1061, 442, [357, 79, 80, 341]], [79, ["string", "scalex"], 1129, 442, [78, null]], [80, ["division2", 0], 1129, 484, [78, 340, 81]], [81, ["number", 1200], 1207, 526, [80, null]], [82, ["storein", 0], 1061, 694, [346, 83, 84, 339]], [83, ["string", "box"], 1129, 694, [82, null]], [84, ["product2", 0], 1129, 736, [82, 85, 86]], [85, ["number", -260], 1183, 736, [84, null]], [86, "box", 1183, 778, [84, 87, null]], [87, ["string", "scalex"], 1238, 778, [86, null]], [88, "hat", 1039, 510, [null, 89, 350]], [89, ["string", "star"], 1097, 518, [88, null]], [90, "setpensize", 1039, 594, [350, 91, 376]], [91, ["number", 15], 1141, 594, [90, null]], [92, ["setxy2", 0], 1039, 670, [376, 93, 94, 377]], [93, ["number", 0], 1097, 670, [92, null]], [94, ["number", 0], 1097, 712, [92, null]], [95, "repeat", 1039, 788, [377, 96, 97, 204]], [96, ["number", 5], 1090, 788, [95, null]], [97, "setcolor", 1104, 848, [95, 98, 99]], [98, "heading", 1181, 848, [97, null]], [99, "forward", 1104, 890, [97, 100, 101]], [100, ["number", 200], 1175, 890, [99, null]], [101, "right", 1104, 932, [99, 102, null]], [102, ["number", 144], 1162, 932, [101, null]], [103, "clean", 1061, 820, [339, 333]], [104, ["number", -200], 379, 442, [255, null]], [105, ["number", -220], 379, 526, [261, null]], [106, ["number", 200], 379, 610, [267, null]], [107, ["string", "USA"], 191, 694, [270, null]], [108, ["journal", "./samples/images/United_States.png"], 191, 778, [272, null]], [109, "hat", 1047, 90, [null, 110, 358]], [110, ["string", "go"], 1105, 98, [109, null]], [111, "if", 1047, 216, [205, 112, 368, 372]], [112, ["greater2", 0], 1085, 182, [111, 113, 115, null]], [113, "box", 1131, 182, [112, 114, null]], [114, ["string", "test"], 1186, 182, [113, null]], [115, ["number", 0], 1131, 224, [112, null]], [116, ["setxy2", 20.0], 1046, 342, [364, 117, 120, 365]], [117, ["minus2", 0], 1104, 342, [116, 118, 186]], [118, "box", 1158, 342, [117, 119, null]], [119, ["string", "x"], 1213, 342, [118, null]], [120, "box", 1104, 424, [116, 121, null]], [121, ["string", "y"], 1159, 424, [120, null]], [122, ["arc", 0], 1046, 500, [365, 123, 124, 188]], [123, ["number", 360], 1104, 500, [122, null]], [124, "box", 1104, 542, [122, 332, null]], [125, ["setxy2", 0], 1047, 336, [372, 126, 127, 373]], [126, ["number", 0], 1105, 336, [125, null]], [127, "box", 1105, 378, [125, 128, null]], [128, ["string", "box"], 1160, 378, [127, null]], [129, "settextsize", 1047, 454, [373, 130, 351]], [130, ["product2", 0], 1151, 454, [129, 131, 132]], [131, ["number", 24], 1205, 454, [130, null]], [132, "box", 1205, 496, [130, 133, null]], [133, ["string", "scalex"], 1260, 496, [132, null]], [134, "show", 1047, 580, [348, 135, 207]], [135, ["plus2", 0], 1105, 580, [134, 136, 137]], [136, ["string", "Put the turtle in "], 1159, 580, [135, null]], [137, "box", 1159, 622, [135, 138, null]], [138, ["string", "name"], 1214, 622, [137, null]], [139, ["setxy2", 0], 1047, 698, [374, 140, 141, 375]], [140, ["number", 0], 1105, 698, [139, null]], [141, ["number", 0], 1105, 740, [139, null]], [142, "forever", 1047, 816, [375, 143, 209]], [143, "stack", 1108, 834, [142, 144, 206]], [144, ["string", "calculate distance"], 1166, 834, [143, null]], [145, "if", 1108, 918, [206, 146, 154, 352]], [146, ["less2", 0], 1146, 884, [145, 147, 149, null]], [147, "box", 1192, 884, [146, 148, null]], [148, ["string", "distance"], 1247, 884, [147, null]], [149, ["product2", 0], 1192, 926, [146, 150, 152]], [150, "box", 1246, 926, [149, 151, null]], [151, ["string", "size"], 1301, 926, [150, null]], [152, "box", 1246, 968, [149, 153, null]], [153, ["string", "scalex"], 1301, 968, [152, null]], [154, "clean", 1160, 986, [145, 155]], [155, ["setxy2", 0], 1160, 1020, [154, 156, 157, 158]], [156, ["number", 0], 1218, 1020, [155, null]], [157, ["number", 0], 1218, 1062, [155, null]], [158, "setscale", 1160, 1104, [155, 159, 160]], [159, ["number", 100], 1237, 1104, [158, null]], [160, "show", 1160, 1146, [158, 161, 163]], [161, "box", 1218, 1146, [160, 162, null]], [162, ["string", "picture"], 1273, 1146, [161, null]], [163, "stopstack", 1160, 1188, [160, null]], [164, "wait", 1108, 1246, [352, 165, null]], [165, ["number", 1], 1166, 1246, [164, null]], [166, ["start", 2.0], 379, 94, [null, 167]], [167, ["storein", 0], 379, 136, [166, 168, 169, 170]], [168, ["string", "test"], 447, 136, [167, null]], [169, ["number", 0], 447, 178, [167, null]], [170, "stack", 379, 220, [167, 171, 172]], [171, ["string", "setup"], 437, 220, [170, null]], [172, "stack", 379, 262, [170, 173, 174]], [173, ["string", "map"], 437, 262, [172, null]], [174, "stack", 379, 304, [172, 175, 176]], [175, ["string", "Q1"], 437, 304, [174, null]], [176, "stack", 379, 346, [174, 177, 178]], [177, ["string", "Q2"], 437, 346, [176, null]], [178, "stack", 379, 388, [176, 179, 180]], [179, ["string", "Q3"], 437, 388, [178, null]], [180, "stack", 379, 430, [178, 181, 182]], [181, ["string", "Q4"], 437, 430, [180, null]], [182, "stack", 379, 472, [180, 183, 184]], [183, ["string", "Q5"], 437, 472, [182, null]], [184, "stack", 379, 514, [182, 185, null]], [185, ["string", "star"], 437, 514, [184, null]], [186, "box", 1182, 384, [117, 187, null]], [187, ["string", "size"], 1237, 384, [186, null]], [188, ["storein", 0], 1046, 584, [122, 189, 190, 208]], [189, ["string", "box"], 1114, 584, [188, null]], [190, ["plus2", 0], 1114, 626, [188, 191, 192]], [191, "xcor", 1168, 626, [190, null]], [192, "box", 1168, 668, [190, 193, null]], [193, ["string", "size"], 1223, 668, [192, null]], [194, "print", 1046, 710, [208, 195, 371]], [195, ["plus2", 0], 1104, 710, [194, 196, 198]], [196, "box", 1158, 710, [195, 197, null]], [197, ["string", "box"], 1213, 710, [196, null]], [198, ["plus2", 0], 1158, 752, [195, 199, 200]], [199, ["string", ", "], 1212, 752, [198, null]], [200, "ycor", 1212, 794, [198, null]], [201, ["number", -170], 383, 304, [228, null]], [202, ["sandwichcollapsed", 1], 1042, 739, [48, null]], [203, ["sandwichcollapsed", 1], 1042, 872, [74, null]], [204, ["sandwichcollapsed", 1], 1039, 594, [95, null]], [205, ["vspace", 0], 1047, 174, [358, 111]], [206, ["vspace", 0], 1108, 876, [143, 145]], [207, ["vspace", 0], 1047, 622, [134, 374]], [208, ["vspace", 0], 1046, 668, [188, 194]], [209, ["sandwichcollapsed", 1], 1047, 174, [142, null]], [210, ["product2", 0], 325, 593, [213, 8, 211]], [211, "box", 379, 635, [210, 212, null]], [212, ["string", "scalex"], 434, 635, [211, null]], [213, ["identity2", 40.0], 191, 593, [6, 210]], [214, ["product2", 0], 325, 677, [215, 11, 216]], [215, ["identity2", 40.0], 191, 677, [9, 214]], [216, "box", 379, 719, [214, 217, null]], [217, ["string", "scaley"], 434, 719, [216, null]], [218, "box", 379, 803, [220, 219, null]], [219, ["string", "scalex"], 434, 803, [218, null]], [220, ["product2", 0], 325, 761, [221, 14, 218]], [221, ["identity2", 40.0], 191, 761, [12, 220]], [222, ["sandwichcollapsed", 1], 123, 551, [21, null]], [223, "hat", 127, 178, [null, 224, 363]], [224, ["string", "Q1"], 185, 186, [223, null]], [225, ["storein", 0], 127, 262, [363, 226, 227, 231]], [226, ["string", "x"], 195, 262, [225, null]], [227, ["identity2", 40.0], 195, 304, [225, 228]], [228, ["product2", 0], 329, 304, [227, 201, 229]], [229, "box", 383, 346, [228, 230, null]], [230, ["string", "scalex"], 438, 346, [229, null]], [231, ["storein", 0], 127, 346, [225, 232, 233, 237]], [232, ["string", "y"], 195, 346, [231, null]], [233, ["identity2", 40.0], 195, 388, [231, 234]], [234, ["product2", 0], 329, 388, [233, 3, 235]], [235, "box", 383, 430, [234, 236, null]], [236, ["string", "scaley"], 438, 430, [235, null]], [237, ["storein", 0], 127, 430, [231, 238, 239, 243]], [238, ["string", "size"], 195, 430, [237, null]], [239, ["identity2", 40.0], 195, 472, [237, 240]], [240, ["product2", 0], 329, 472, [239, 2, 241]], [241, "box", 383, 514, [240, 242, null]], [242, ["string", "scalex"], 438, 514, [241, null]], [243, ["storein", 0], 127, 514, [237, 244, 0, 245]], [244, ["string", "name"], 195, 514, [243, null]], [245, ["storein", 0], 127, 598, [243, 246, 1, 247]], [246, ["string", "picture"], 195, 598, [245, null]], [247, "stack", 127, 682, [245, 248, 249]], [248, ["string", "go"], 185, 682, [247, null]], [249, ["sandwichcollapsed", 1], 127, 262, [247, null]], [250, "hat", 123, 316, [null, 251, 362]], [251, ["string", "Q2"], 181, 324, [250, null]], [252, ["storein", 0], 123, 400, [362, 253, 254, 258]], [253, ["string", "x"], 191, 400, [252, null]], [254, ["identity2", 40.0], 191, 442, [252, 255]], [255, ["product2", 0], 325, 442, [254, 104, 256]], [256, "box", 379, 484, [255, 257, null]], [257, ["string", "scalex"], 434, 484, [256, null]], [258, ["storein", 0], 123, 484, [252, 259, 260, 264]], [259, ["string", "y"], 191, 484, [258, null]], [260, ["identity2", 40.0], 191, 526, [258, 261]], [261, ["product2", 0], 325, 526, [260, 105, 262]], [262, "box", 379, 568, [261, 263, null]], [263, ["string", "scaley"], 434, 568, [262, null]], [264, ["storein", 0], 123, 568, [258, 265, 266, 270]], [265, ["string", "size"], 191, 568, [264, null]], [266, ["identity2", 40.0], 191, 610, [264, 267]], [267, ["product2", 0], 325, 610, [266, 106, 268]], [268, "box", 379, 652, [267, 269, null]], [269, ["string", "scalex"], 434, 652, [268, null]], [270, ["storein", 0], 123, 652, [264, 271, 107, 272]], [271, ["string", "name"], 191, 652, [270, null]], [272, ["storein", 0], 123, 736, [270, 273, 108, 274]], [273, ["string", "picture"], 191, 736, [272, null]], [274, "stack", 123, 820, [272, 275, 276]], [275, ["string", "go"], 181, 820, [274, null]], [276, ["sandwichcollapsed", 1], 123, 400, [274, null]], [277, "hat", 124, 762, [null, 278, 359]], [278, ["string", "Q5"], 182, 770, [277, null]], [279, ["storein", 0], 124, 846, [359, 280, 281, 285]], [280, ["string", "x"], 192, 846, [279, null]], [281, ["identity2", 40.0], 192, 888, [279, 282]], [282, ["product2", 0], 326, 888, [281, 62, 283]], [283, "box", 380, 930, [282, 284, null]], [284, ["string", "scalex"], 435, 930, [283, null]], [285, ["storein", 0], 124, 930, [279, 286, 287, 291]], [286, ["string", "y"], 192, 930, [285, null]], [287, ["identity2", 40.0], 192, 972, [285, 288]], [288, ["product2", 0], 326, 972, [287, 63, 289]], [289, "box", 380, 1014, [288, 290, null]], [290, ["string", "scaley"], 435, 1014, [289, null]], [291, ["storein", 0], 124, 1014, [285, 292, 293, 297]], [292, ["string", "size"], 192, 1014, [291, null]], [293, ["identity2", 40.0], 192, 1056, [291, 294]], [294, ["product2", 0], 326, 1056, [293, 64, 295]], [295, "box", 380, 1098, [294, 296, null]], [296, ["string", "scalex"], 435, 1098, [295, null]], [297, ["storein", 0], 124, 1098, [291, 298, 65, 299]], [298, ["string", "name"], 192, 1098, [297, null]], [299, ["storein", 0], 124, 1182, [297, 300, 66, 301]], [300, ["string", "picture"], 192, 1182, [299, null]], [301, "stack", 124, 1266, [299, 302, 303]], [302, ["string", "go"], 182, 1266, [301, null]], [303, ["sandwichcollapsed", 1], 124, 846, [301, null]], [304, "hat", 122, 623, [null, 305, 360]], [305, ["string", "Q4"], 180, 631, [304, null]], [306, ["storein", 0], 122, 707, [360, 307, 308, 312]], [307, ["string", "x"], 190, 707, [306, null]], [308, ["identity2", 40.0], 190, 749, [306, 309]], [309, ["product2", 0], 324, 749, [308, 23, 310]], [310, "box", 378, 791, [309, 311, null]], [311, ["string", "scalex"], 433, 791, [310, null]], [312, ["storein", 0], 122, 791, [306, 313, 314, 318]], [313, ["string", "y"], 190, 791, [312, null]], [314, ["identity2", 40.0], 190, 833, [312, 315]], [315, ["product2", 0], 324, 833, [314, 24, 316]], [316, "box", 378, 875, [315, 317, null]], [317, ["string", "scaley"], 433, 875, [316, null]], [318, ["storein", 0], 122, 875, [312, 319, 320, 324]], [319, ["string", "size"], 190, 875, [318, null]], [320, ["identity2", 40.0], 190, 917, [318, 321]], [321, ["product2", 0], 324, 917, [320, 25, 322]], [322, "box", 378, 959, [321, 323, null]], [323, ["string", "scalex"], 433, 959, [322, null]], [324, ["storein", 0], 122, 959, [318, 325, 26, 326]], [325, ["string", "name"], 190, 959, [324, null]], [326, ["storein", 0], 122, 1043, [324, 327, 27, 328]], [327, ["string", "picture"], 190, 1043, [326, null]], [328, "stack", 122, 1127, [326, 329, 330]], [329, ["string", "go"], 180, 1127, [328, null]], [330, ["sandwichcollapsed", 1], 122, 707, [328, null]], [331, ["sandwichcollapsed", 1], 1061, 442, [333, null]], [332, ["string", "size"], 1159, 542, [124, null]], [333, "if", 1061, 854, [103, 334, 336, 331]], [334, ["equal2", 0], 1099, 820, [333, 337, 335, null]], [335, ["number", 0], 1145, 862, [334, null]], [336, "hideblocks", 1113, 922, [333, null]], [337, "box", 1145, 820, [334, 338, null]], [338, ["string", "test"], 1200, 820, [337, null]], [339, ["vspace", 0], 1061, 778, [82, 103]], [340, "width", 1183, 484, [80, null]], [341, ["vspace", 0], 1061, 526, [78, 342]], [342, ["storein", 0], 1061, 568, [341, 343, 344, 346]], [343, ["string", "scaley"], 1129, 568, [342, null]], [344, ["division2", 0], 1129, 610, [342, 347, 345]], [345, ["number", 900], 1207, 652, [344, null]], [346, ["vspace", 0], 1061, 652, [342, 82]], [347, "height", 1183, 610, [344, null]], [348, "setscale", 1047, 538, [351, 349, 134]], [349, ["number", 33], 1124, 538, [348, null]], [350, "sandwichtop_no_arm_no_label", 1021, 560, [88, 90]], [351, ["vspace", 0], 1047, 496, [129, 348]], [352, ["vspace", 100], 1108, 1004, [145, 164]], [353, "sandwichtop_no_arm_no_label", 1024, 838, [67, 69]], [354, ["vspace", 20], 1042, 989, [39, 48]], [355, ["vspace", 20], 1042, 823, [30, 39]], [356, "sandwichtop_no_arm_no_label", 1024, 705, [28, 30]], [357, "sandwichtop_no_arm_no_label", 1043, 408, [76, 78]], [358, "sandwichtop_no_arm_no_label", 1029, 140, [109, 205]], [359, "sandwichtop_no_arm_no_label", 106, 812, [277, 279]], [360, "sandwichtop_no_arm_no_label", 104, 673, [304, 306]], [361, "sandwichtop_no_arm_no_label", 105, 517, [4, 6]], [362, "sandwichtop_no_arm_no_label", 105, 366, [250, 252]], [363, "sandwichtop_no_arm_no_label", 109, 228, [223, 225]], [364, "penup", 1046, 308, [370, 116]], [365, "pendown", 1046, 466, [116, 122]], [366, "hat", 1046, 224, [null, 367, 370]], [367, ["string", "test"], 1104, 232, [366, null]], [368, "stack", 1099, 284, [111, 369, null]], [369, ["string", "test"], 1157, 284, [368, null]], [370, "sandwichtop_no_arm_no_label", 1028, 274, [366, 364]], [371, ["sandwichcollapsed", 1], 1046, 308, [194, null]], [372, "penup", 1047, 302, [111, 125]], [373, "pendown", 1047, 420, [125, 129]], [374, "penup", 1047, 664, [207, 139]], [375, "pendown", 1047, 782, [139, 142]], [376, "penup", 1039, 636, [90, 92]], [377, "pendown", 1039, 754, [92, 95]]] \ No newline at end of file +[[0, ["string", "North America"], 178, 536, [241, null]], +[1, ["journal", "./samples/images/North_America.jpg"], 178, 620, [243, null]], +[2, ["number", 150], 366, 452, [238, null]], +[3, ["number", 114], 366, 368, [232, null]], +[4, "hat", 123, 467, [null, 5, 358]], +[5, ["string", "Q3"], 181, 479, [4, null]], +[6, ["storein", 0], 106, 531, [358, 7, 211, 9]], +[7, ["string", "x"], 174, 531, [6, null]], +[8, ["number", 500], 362, 573, [208, null]], +[9, ["storein", 0], 106, 615, [6, 10, 213, 12]], +[10, ["string", "y"], 174, 615, [9, null]], +[11, ["number", 300], 362, 657, [212, null]], +[12, ["storein", 0], 106, 699, [9, 13, 219, 15]], +[13, ["string", "size"], 174, 699, [12, null]], +[14, ["number", 100], 362, 741, [218, null]], +[15, ["storein", 0], 106, 783, [12, 16, 17, 18]], +[16, ["string", "name"], 174, 783, [15, null]], +[17, ["string", "New England"], 174, 825, [15, null]], +[18, ["storein", 0], 106, 867, [15, 19, 20, 21]], +[19, ["string", "picture"], 174, 867, [18, null]], +[20, ["journal", "./samples/images/New-England.png"], 174, 909, [18, null]], +[21, "stack", 106, 951, [18, 22, 220]], +[22, ["string", "go"], 164, 951, [21, null]], +[23, ["number", -330], 361, 729, [307, null]], +[24, ["number", -240], 361, 813, [313, null]], +[25, ["number", 100], 361, 897, [319, null]], +[26, ["string", "Massachusetts"], 173, 981, [322, null]], +[27, ["journal", "./samples/images/Massachuetts.png"], 173, 1065, [324, null]], +[28, "hat", 654, 621, [null, 29, 353]], +[29, ["string", "calculate distance"], 712, 633, [28, null]], +[30, ["storein", 0], 637, 685, [353, 31, 32, 352]], +[31, ["string", "dx"], 705, 685, [30, null]], +[32, ["minus2", 20.0], 705, 727, [30, 33, 38]], +[33, ["product2", 0], 759, 727, [32, 34, 36]], +[34, "box", 813, 727, [33, 35, null]], +[35, ["string", "x"], 868, 727, [34, null]], +[36, "box", 813, 769, [33, 37, null]], +[37, ["string", "scalex"], 868, 769, [36, null]], +[38, "xcor", 783, 809, [32, null]], +[39, ["storein", 0], 637, 851, [352, 40, 41, 351]], +[40, ["string", "dy"], 705, 851, [39, null]], +[41, ["minus2", 20.0], 705, 893, [39, 42, 47]], +[42, ["product2", 0], 759, 893, [41, 43, 45]], +[43, "box", 813, 893, [42, 44, null]], +[44, ["string", "y"], 868, 893, [43, null]], +[45, "box", 813, 935, [42, 46, null]], +[46, ["string", "scaley"], 868, 935, [45, null]], +[47, "ycor", 783, 975, [41, null]], +[48, ["storein", 0], 637, 1017, [351, 49, 50, 202]], +[49, ["string", "distance"], 705, 1017, [48, null]], +[50, "sqrt", 705, 1059, [48, 51]], +[51, ["plus2", 20.0], 759, 1059, [50, 52, 57]], +[52, ["product2", 0], 813, 1059, [51, 53, 55]], +[53, "box", 867, 1059, [52, 54, null]], +[54, ["string", "dx"], 922, 1059, [53, null]], +[55, "box", 867, 1101, [52, 56, null]], +[56, ["string", "dx"], 922, 1101, [55, null]], +[57, ["product2", 0], 813, 1141, [51, 58, 60]], +[58, "box", 867, 1141, [57, 59, null]], +[59, ["string", "dy"], 922, 1141, [58, null]], +[60, "box", 867, 1183, [57, 61, null]], +[61, ["string", "dy"], 922, 1183, [60, null]], +[62, ["number", 120], 363, 868, [280, null]], +[63, ["number", 190], 363, 952, [286, null]], +[64, ["number", 50], 363, 1036, [292, null]], +[65, ["string", "Boston"], 175, 1120, [295, null]], +[66, ["journal", "./samples/images/Boston.png"], 175, 1204, [297, null]], +[67, "hat", 1042, 788, [null, 68, 350]], +[68, ["string", "map"], 1100, 800, [67, null]], +[69, "setscale", 1025, 852, [350, 70, 71]], +[70, ["number", 100], 1102, 852, [69, null]], +[71, ["setxy2", 0], 1025, 894, [69, 72, 73, 74]], +[72, ["number", 0], 1083, 894, [71, null]], +[73, ["number", 0], 1083, 936, [71, null]], +[74, "show", 1025, 978, [71, 75, 203]], +[75, ["journal", "./samples/images/earth.png"], 1083, 978, [74, null]], +[76, "hat", 663, 415, [null, 77, 354]], +[77, ["string", "setup"], 721, 427, [76, null]], +[78, ["storein", 0], 646, 479, [354, 79, 80, 339]], +[79, ["string", "scalex"], 714, 479, [78, null]], +[80, ["division2", 0], 714, 521, [78, 338, 81]], +[81, ["number", 1200], 792, 563, [80, null]], +[82, ["storein", 0], 646, 731, [344, 83, 84, 337]], +[83, ["string", "box"], 714, 731, [82, null]], +[84, ["product2", 0], 714, 773, [82, 85, 86]], +[85, ["number", -260], 768, 773, [84, null]], +[86, "box", 768, 815, [84, 87, null]], +[87, ["string", "scalex"], 823, 815, [86, null]], +[88, "hat", 717, 523, [null, 89, 348]], +[89, ["string", "star"], 775, 535, [88, null]], +[90, "setpensize", 700, 587, [348, 91, 373]], +[91, ["number", 15], 802, 587, [90, null]], +[92, ["setxy2", 0], 700, 671, [373, 93, 94, 374]], +[93, ["number", 0], 758, 671, [92, null]], +[94, ["number", 0], 758, 713, [92, null]], +[95, ["repeat", 42], 700, 797, [374, 96, 97, 204]], +[96, ["number", 5], 759, 797, [95, null]], +[97, "setcolor", 718, 839, [95, 98, 99]], +[98, "heading", 795, 839, [97, null]], +[99, "forward", 718, 881, [97, 100, 101]], +[100, ["number", 200], 789, 881, [99, null]], +[101, "right", 718, 923, [99, 102, null]], +[102, ["number", 144], 776, 923, [101, null]], +[103, "clean", 646, 857, [337, 331]], +[104, ["number", -200], 362, 422, [253, null]], +[105, ["number", -220], 362, 506, [259, null]], +[106, ["number", 200], 362, 590, [265, null]], +[107, ["string", "USA"], 174, 674, [268, null]], +[108, ["journal", "./samples/images/United_States.png"], 174, 758, [270, null]], +[109, "hat", 671, 205, [null, 110, 355]], +[110, ["string", "go"], 729, 217, [109, null]], +[111, ["if", 0], 689, 293, [355, 112, 365, 369]], +[112, ["greater2", 0], 745, 259, [111, 113, 115, null]], +[113, "box", 791, 259, [112, 114, null]], +[114, ["string", "test"], 846, 259, [113, null]], +[115, ["number", 0], 815, 301, [112, null]], +[116, ["setxy2", 20.0], 701, 419, [361, 117, 120, 362]], +[117, ["minus2", 0], 759, 419, [116, 118, 186]], +[118, "box", 813, 419, [117, 119, null]], +[119, ["string", "x"], 868, 419, [118, null]], +[120, "box", 759, 501, [116, 121, null]], +[121, ["string", "y"], 814, 501, [120, null]], +[122, ["arc", 0], 701, 585, [362, 123, 124, 188]], +[123, ["number", 360], 759, 585, [122, null]], +[124, "box", 759, 627, [122, 330, null]], +[125, ["setxy2", 0], 689, 461, [369, 126, 127, 370]], +[126, ["number", 0], 747, 461, [125, null]], +[127, "box", 747, 503, [125, 128, null]], +[128, ["string", "box"], 802, 503, [127, null]], +[129, "settextsize", 689, 587, [370, 130, 349]], +[130, ["product2", 0], 793, 587, [129, 131, 132]], +[131, ["number", 24], 847, 587, [130, null]], +[132, "box", 847, 629, [130, 133, null]], +[133, ["string", "scalex"], 902, 629, [132, null]], +[134, "show", 689, 755, [375, 135, 206]], +[135, ["plus2", 0], 747, 755, [134, 136, 137]], +[136, ["string", "Put the turtle in "], 801, 755, [135, null]], +[137, "box", 801, 797, [135, 138, null]], +[138, ["string", "name"], 856, 797, [137, null]], +[139, ["setxy2", 0], 689, 881, [371, 140, 141, 372]], +[140, ["number", 0], 747, 881, [139, null]], +[141, ["number", 0], 747, 923, [139, null]], +[142, ["forever", 231], 689, 1007, [372, 143, null]], +[143, "stack", 707, 1041, [142, 144, 205]], +[144, ["string", "calculate distance"], 765, 1041, [143, null]], +[145, ["if", 126], 707, 1125, [205, 146, 154, 164]], +[146, ["less2", 0], 763, 1091, [145, 147, 149, null]], +[147, "box", 809, 1091, [146, 148, null]], +[148, ["string", "distance"], 864, 1091, [147, null]], +[149, ["product2", 0], 833, 1133, [146, 150, 152]], +[150, "box", 887, 1133, [149, 151, null]], +[151, ["string", "size"], 942, 1133, [150, null]], +[152, "box", 887, 1175, [149, 153, null]], +[153, ["string", "scalex"], 942, 1175, [152, null]], +[154, "clean", 725, 1191, [145, 155]], +[155, ["setxy2", 0], 725, 1233, [154, 156, 157, 158]], +[156, ["number", 0], 783, 1233, [155, null]], +[157, ["number", 0], 783, 1275, [155, null]], +[158, "setscale", 725, 1317, [155, 159, 377]], +[159, ["number", 100], 802, 1317, [158, null]], +[160, "show", 725, 1401, [377, 161, 163]], +[161, "box", 783, 1401, [160, 162, null]], +[162, ["string", "picture"], 838, 1401, [161, null]], +[163, "stopstack", 725, 1443, [160, null]], +[164, "wait", 707, 1503, [145, 165, null]], +[165, ["number", 1], 765, 1503, [164, null]], +[166, ["start", 2.0], 407, 211, [null, 167]], +[167, ["storein", 0], 407, 257, [166, 168, 169, 170]], +[168, ["string", "test"], 475, 257, [167, null]], +[169, ["number", 0], 475, 299, [167, null]], +[170, "stack", 407, 341, [167, 171, 172]], +[171, ["string", "setup"], 465, 341, [170, null]], +[172, "stack", 407, 383, [170, 173, 174]], +[173, ["string", "map"], 465, 383, [172, null]], +[174, "stack", 407, 425, [172, 175, 176]], +[175, ["string", "Q1"], 465, 425, [174, null]], +[176, "stack", 407, 467, [174, 177, 178]], +[177, ["string", "Q2"], 465, 467, [176, null]], +[178, "stack", 407, 509, [176, 179, 180]], +[179, ["string", "Q3"], 465, 509, [178, null]], +[180, "stack", 407, 551, [178, 181, 182]], +[181, ["string", "Q4"], 465, 551, [180, null]], +[182, "stack", 407, 593, [180, 183, 184]], +[183, ["string", "Q5"], 465, 593, [182, null]], +[184, "stack", 407, 635, [182, 185, null]], +[185, ["string", "star"], 465, 635, [184, null]], +[186, "box", 837, 461, [117, 187, null]], +[187, ["string", "size"], 892, 461, [186, null]], +[188, ["storein", 0], 701, 669, [122, 189, 190, 207]], +[189, ["string", "box"], 769, 669, [188, null]], +[190, ["plus2", 0], 769, 711, [188, 191, 192]], +[191, "xcor", 823, 711, [190, null]], +[192, "box", 823, 753, [190, 193, null]], +[193, ["string", "size"], 878, 753, [192, null]], +[194, "print", 701, 795, [207, 195, 368]], +[195, ["plus2", 0], 759, 795, [194, 196, 198]], +[196, "box", 813, 795, [195, 197, null]], +[197, ["string", "box"], 868, 795, [196, null]], +[198, ["plus2", 0], 813, 837, [195, 199, 200]], +[199, ["string", ", "], 867, 837, [198, null]], +[200, "ycor", 867, 879, [198, null]], +[201, ["number", -170], 366, 284, [226, null]], +[202, ["vspace", 1], 637, 1101, [48, null]], +[203, ["vspace", 1], 1025, 1020, [74, null]], +[204, ["vspace", 1], 700, 983, [95, null]], +[205, ["vspace", 0], 707, 1083, [143, 145]], +[206, ["vspace", 0], 689, 797, [134, 371]], +[207, ["vspace", 0], 701, 753, [188, 194]], +[208, ["product2", 0], 308, 573, [211, 8, 209]], +[209, "box", 362, 615, [208, 210, null]], +[210, ["string", "scalex"], 417, 615, [209, null]], +[211, ["identity2", 40.0], 174, 573, [6, 208]], +[212, ["product2", 0], 308, 657, [213, 11, 214]], +[213, ["identity2", 40.0], 174, 657, [9, 212]], +[214, "box", 362, 699, [212, 215, null]], +[215, ["string", "scaley"], 417, 699, [214, null]], +[216, "box", 362, 783, [218, 217, null]], +[217, ["string", "scalex"], 417, 783, [216, null]], +[218, ["product2", 0], 308, 741, [219, 14, 216]], +[219, ["identity2", 40.0], 174, 741, [12, 218]], +[220, ["vspace", 1], 106, 993, [21, null]], +[221, "hat", 127, 178, [null, 222, 360]], +[222, ["string", "Q1"], 185, 190, [221, null]], +[223, ["storein", 0], 110, 242, [360, 224, 225, 229]], +[224, ["string", "x"], 178, 242, [223, null]], +[225, ["identity2", 40.0], 178, 284, [223, 226]], +[226, ["product2", 0], 312, 284, [225, 201, 227]], +[227, "box", 366, 326, [226, 228, null]], +[228, ["string", "scalex"], 421, 326, [227, null]], +[229, ["storein", 0], 110, 326, [223, 230, 231, 235]], +[230, ["string", "y"], 178, 326, [229, null]], +[231, ["identity2", 40.0], 178, 368, [229, 232]], +[232, ["product2", 0], 312, 368, [231, 3, 233]], +[233, "box", 366, 410, [232, 234, null]], +[234, ["string", "scaley"], 421, 410, [233, null]], +[235, ["storein", 0], 110, 410, [229, 236, 237, 241]], +[236, ["string", "size"], 178, 410, [235, null]], +[237, ["identity2", 40.0], 178, 452, [235, 238]], +[238, ["product2", 0], 312, 452, [237, 2, 239]], +[239, "box", 366, 494, [238, 240, null]], +[240, ["string", "scalex"], 421, 494, [239, null]], +[241, ["storein", 0], 110, 494, [235, 242, 0, 243]], +[242, ["string", "name"], 178, 494, [241, null]], +[243, ["storein", 0], 110, 578, [241, 244, 1, 245]], +[244, ["string", "picture"], 178, 578, [243, null]], +[245, "stack", 110, 662, [243, 246, 247]], +[246, ["string", "go"], 168, 662, [245, null]], +[247, ["vspace", 1], 110, 704, [245, null]], +[248, "hat", 123, 316, [null, 249, 359]], +[249, ["string", "Q2"], 181, 328, [248, null]], +[250, ["storein", 0], 106, 380, [359, 251, 252, 256]], +[251, ["string", "x"], 174, 380, [250, null]], +[252, ["identity2", 40.0], 174, 422, [250, 253]], +[253, ["product2", 0], 308, 422, [252, 104, 254]], +[254, "box", 362, 464, [253, 255, null]], +[255, ["string", "scalex"], 417, 464, [254, null]], +[256, ["storein", 0], 106, 464, [250, 257, 258, 262]], +[257, ["string", "y"], 174, 464, [256, null]], +[258, ["identity2", 40.0], 174, 506, [256, 259]], +[259, ["product2", 0], 308, 506, [258, 105, 260]], +[260, "box", 362, 548, [259, 261, null]], +[261, ["string", "scaley"], 417, 548, [260, null]], +[262, ["storein", 0], 106, 548, [256, 263, 264, 268]], +[263, ["string", "size"], 174, 548, [262, null]], +[264, ["identity2", 40.0], 174, 590, [262, 265]], +[265, ["product2", 0], 308, 590, [264, 106, 266]], +[266, "box", 362, 632, [265, 267, null]], +[267, ["string", "scalex"], 417, 632, [266, null]], +[268, ["storein", 0], 106, 632, [262, 269, 107, 270]], +[269, ["string", "name"], 174, 632, [268, null]], +[270, ["storein", 0], 106, 716, [268, 271, 108, 272]], +[271, ["string", "picture"], 174, 716, [270, null]], +[272, "stack", 106, 800, [270, 273, 274]], +[273, ["string", "go"], 164, 800, [272, null]], +[274, ["vspace", 1], 106, 842, [272, null]], +[275, "hat", 124, 762, [null, 276, 356]], +[276, ["string", "Q5"], 182, 774, [275, null]], +[277, ["storein", 0], 107, 826, [356, 278, 279, 283]], +[278, ["string", "x"], 175, 826, [277, null]], +[279, ["identity2", 40.0], 175, 868, [277, 280]], +[280, ["product2", 0], 309, 868, [279, 62, 281]], +[281, "box", 363, 910, [280, 282, null]], +[282, ["string", "scalex"], 418, 910, [281, null]], +[283, ["storein", 0], 107, 910, [277, 284, 285, 289]], +[284, ["string", "y"], 175, 910, [283, null]], +[285, ["identity2", 40.0], 175, 952, [283, 286]], +[286, ["product2", 0], 309, 952, [285, 63, 287]], +[287, "box", 363, 994, [286, 288, null]], +[288, ["string", "scaley"], 418, 994, [287, null]], +[289, ["storein", 0], 107, 994, [283, 290, 291, 295]], +[290, ["string", "size"], 175, 994, [289, null]], +[291, ["identity2", 40.0], 175, 1036, [289, 292]], +[292, ["product2", 0], 309, 1036, [291, 64, 293]], +[293, "box", 363, 1078, [292, 294, null]], +[294, ["string", "scalex"], 418, 1078, [293, null]], +[295, ["storein", 0], 107, 1078, [289, 296, 65, 297]], +[296, ["string", "name"], 175, 1078, [295, null]], +[297, ["storein", 0], 107, 1162, [295, 298, 66, 299]], +[298, ["string", "picture"], 175, 1162, [297, null]], +[299, "stack", 107, 1246, [297, 300, 301]], +[300, ["string", "go"], 165, 1246, [299, null]], +[301, ["vspace", 1], 107, 1288, [299, null]], +[302, "hat", 122, 623, [null, 303, 357]], +[303, ["string", "Q4"], 180, 635, [302, null]], +[304, ["storein", 0], 105, 687, [357, 305, 306, 310]], +[305, ["string", "x"], 173, 687, [304, null]], +[306, ["identity2", 40.0], 173, 729, [304, 307]], +[307, ["product2", 0], 307, 729, [306, 23, 308]], +[308, "box", 361, 771, [307, 309, null]], +[309, ["string", "scalex"], 416, 771, [308, null]], +[310, ["storein", 0], 105, 771, [304, 311, 312, 316]], +[311, ["string", "y"], 173, 771, [310, null]], +[312, ["identity2", 40.0], 173, 813, [310, 313]], +[313, ["product2", 0], 307, 813, [312, 24, 314]], +[314, "box", 361, 855, [313, 315, null]], +[315, ["string", "scaley"], 416, 855, [314, null]], +[316, ["storein", 0], 105, 855, [310, 317, 318, 322]], +[317, ["string", "size"], 173, 855, [316, null]], +[318, ["identity2", 40.0], 173, 897, [316, 319]], +[319, ["product2", 0], 307, 897, [318, 25, 320]], +[320, "box", 361, 939, [319, 321, null]], +[321, ["string", "scalex"], 416, 939, [320, null]], +[322, ["storein", 0], 105, 939, [316, 323, 26, 324]], +[323, ["string", "name"], 173, 939, [322, null]], +[324, ["storein", 0], 105, 1023, [322, 325, 27, 326]], +[325, ["string", "picture"], 173, 1023, [324, null]], +[326, "stack", 105, 1107, [324, 327, 328]], +[327, ["string", "go"], 163, 1107, [326, null]], +[328, ["vspace", 1], 105, 1149, [326, null]], +[329, ["vspace", 1], 646, 1025, [331, null]], +[330, ["string", "size"], 814, 627, [124, null]], +[331, ["if", 0], 646, 899, [103, 332, 334, 329]], +[332, ["equal2", 0], 702, 865, [331, 335, 333, null]], +[333, ["number", 0], 748, 907, [332, null]], +[334, "hideblocks", 664, 965, [331, null]], +[335, "box", 748, 865, [332, 336, null]], +[336, ["string", "test"], 803, 865, [335, null]], +[337, ["vspace", 0], 646, 815, [82, 103]], +[338, "width", 768, 521, [80, null]], +[339, ["vspace", 0], 646, 563, [78, 340]], +[340, ["storein", 0], 646, 605, [339, 341, 342, 344]], +[341, ["string", "scaley"], 714, 605, [340, null]], +[342, ["division2", 0], 714, 647, [340, 345, 343]], +[343, ["number", 900], 792, 689, [342, null]], +[344, ["vspace", 0], 646, 689, [340, 82]], +[345, "height", 768, 647, [342, null]], +[346, "setscale", 689, 671, [349, 347, 375]], +[347, ["number", 33], 766, 671, [346, null]], +[348, "sandwichclampcollapsed", 717, 577, [88, 90, null]], +[349, ["vspace", 0], 689, 629, [129, 346]], +[350, "sandwichclampcollapsed", 1042, 842, [67, 69, null]], +[351, ["vspace", 20], 637, 935, [39, 48]], +[352, ["vspace", 20], 637, 769, [30, 39]], +[353, "sandwichclampcollapsed", 654, 675, [28, 30, null]], +[354, "sandwichclampcollapsed", 663, 469, [76, 78, null]], +[355, "sandwichclampcollapsed", 671, 259, [109, 111, null]], +[356, "sandwichclampcollapsed", 124, 816, [275, 277, null]], +[357, "sandwichclampcollapsed", 122, 677, [302, 304, null]], +[358, "sandwichclampcollapsed", 123, 521, [4, 6, null]], +[359, "sandwichclampcollapsed", 123, 370, [248, 250, null]], +[360, "sandwichclampcollapsed", 127, 232, [221, 223, null]], +[361, "penup", 701, 377, [367, 116]], +[362, "pendown", 701, 543, [116, 122]], +[363, "hat", 718, 313, [null, 364, 367]], +[364, ["string", "test"], 776, 325, [363, null]], +[365, "stack", 707, 359, [111, 366, null]], +[366, ["string", "test"], 765, 359, [365, null]], +[367, "sandwichclampcollapsed", 718, 367, [363, 361, null]], +[368, ["vspace", 1], 701, 837, [194, null]], +[369, "penup", 689, 419, [111, 125]], +[370, "pendown", 689, 545, [125, 129]], +[371, "penup", 689, 839, [206, 139]], +[372, "pendown", 689, 965, [139, 142]], +[373, "penup", 700, 629, [90, 92]], +[374, "pendown", 700, 755, [92, 95]], +[375, "seth", 689, 713, [346, 376, 134]], +[376, ["number", 0], 747, 713, [375, null]], +[377, "seth", 725, 1359, [158, 378, 160]], +[378, ["number", 0], 783, 1359, [377, null]]] diff --git a/samples/game-spiralaterals.ta b/samples/game-spiralaterals.ta index 9099145..d8b95fd 100644 --- a/samples/game-spiralaterals.ta +++ b/samples/game-spiralaterals.ta @@ -1,55 +1,64 @@ -[[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 +[[0, ["start", 2.0], 60, 200, [null, 60]], +[1, "forward", 700, 274, [40, 6, 7]], +[2, "right", 700, 358, [7, 3, null]], +[3, ["number", 90], 758, 358, [2, null]], +[4, ["number", 20.0], 128, 288, [60, null]], +[5, "pop", 825, 316, [6, null]], +[6, ["product2", 0], 771, 274, [1, 62, 5]], +[7, ["vspace", 0], 700, 316, [1, 2]], +[8, "push", 440, 254, [36, 9, 42]], +[9, ["number", 1], 498, 254, [8, null]], +[10, ["repeat", 0], 78, 832, [12, 11, 38, null]], +[11, ["number", 4], 137, 832, [10, null]], +[12, ["vspace", 0], 78, 790, [23, 10]], +[13, ["repeat", 218], 60, 414, [33, 14, 28, null]], +[14, ["number", 400], 119, 414, [13, null]], +[15, ["vspace", 0], 78, 664, [16, 32]], +[16, ["setxy2", 20], 78, 540, [27, 17, 18, 15]], +[17, ["random", 0], 136, 540, [16, 19, 21, null]], +[18, ["random", 0], 136, 622, [16, 20, 22, null]], +[19, "leftpos", 222, 540, [17, null]], +[20, "bottompos", 222, 622, [18, null]], +[21, "rightpos", 222, 582, [17, null]], +[22, "toppos", 222, 664, [18, null]], +[23, "setcolor", 78, 748, [32, 24, 12]], +[24, ["random", 0], 155, 748, [23, 25, 26, null]], +[25, ["number", 0], 241, 748, [24, null]], +[26, ["number", 100], 241, 790, [24, null]], +[27, "penup", 78, 498, [28, 16]], +[28, "seth", 78, 456, [13, 29, 27]], +[29, ["random", 0], 136, 456, [28, 30, 31, null]], +[30, ["number", 0], 222, 456, [29, null]], +[31, ["number", 90], 222, 498, [29, null]], +[32, "pendown", 78, 706, [15, 23]], +[33, ["fillscreen", 0], 60, 330, [60, 34, 35, 13]], +[34, "black", 142, 330, [33, null]], +[35, ["number", 0], 142, 372, [33, null]], +[36, "hat", 440, 200, [null, 37, 8]], +[37, ["string", "action"], 498, 212, [36, null]], +[38, "stack", 96, 874, [10, 39, null]], +[39, ["string", "action"], 154, 874, [38, null]], +[40, "hat", 700, 220, [null, 41, 1]], +[41, ["string", "action 2"], 758, 232, [40, null]], +[42, "stack", 440, 296, [8, 43, 44]], +[43, ["string", "action 2"], 498, 296, [42, null]], +[44, "push", 440, 338, [42, 45, 46]], +[45, ["number", 1], 498, 338, [44, null]], +[46, "stack", 440, 380, [44, 47, 48]], +[47, ["string", "action 2"], 498, 380, [46, null]], +[48, "push", 440, 422, [46, 49, 50]], +[49, ["number", 1], 498, 422, [48, null]], +[50, "stack", 440, 464, [48, 51, 52]], +[51, ["string", "action 2"], 498, 464, [50, null]], +[52, "push", 440, 506, [50, 53, 54]], +[53, ["number", 3.0], 498, 506, [52, null]], +[54, "stack", 440, 548, [52, 55, 56]], +[55, ["string", "action 2"], 498, 548, [54, null]], +[56, "push", 440, 590, [54, 57, 58]], +[57, ["number", 2.0], 498, 590, [56, null]], +[58, "stack", 440, 632, [56, 59, null]], +[59, ["string", "action 2"], 498, 632, [58, null]], +[60, ["storein", 0], 60, 246, [0, 61, 4, 33]], +[61, ["string", "my box"], 128, 246, [60, null]], +[62, "box", 825, 274, [6, 63, null]], +[63, ["string", "my box"], 880, 274, [62, null]]] diff --git a/samples/graphics-birds.ta b/samples/graphics-birds.ta index 2a8c448..516fb3d 100644 --- a/samples/graphics-birds.ta +++ b/samples/graphics-birds.ta @@ -1 +1,40 @@ -[[0, ["start", 2.0], 176, 175, [null, 1]], [1, "clean", 176, 217, [0, 2]], [2, "repeat", 176, 251, [1, 3, 34, null]], [3, ["number", 30], 227, 251, [2, null]], [4, ["setxy2", 20.0], 241, 345, [34, 5, 8, 31]], [5, ["random", 0], 299, 345, [4, 6, 7, null]], [6, ["number", -600], 385, 345, [5, null]], [7, ["number", 600], 385, 387, [5, null]], [8, ["random", 0], 299, 427, [4, 9, 10, null]], [9, ["number", -450], 385, 427, [8, null]], [10, ["number", 450], 385, 469, [8, null]], [11, "setpensize", 241, 545, [35, 12, 37]], [12, ["number", 10], 343, 545, [11, null]], [13, "repeat", 479, 226, [36, 14, 15, null]], [14, ["number", 720], 530, 226, [13, null]], [15, "forward", 544, 286, [13, 16, 21]], [16, ["number", 200], 615, 286, [15, null]], [17, "setcolor", 544, 370, [21, 18, 32]], [18, ["division2", 0], 621, 370, [17, 19, 20]], [19, "xcor", 675, 370, [18, null]], [20, ["number", 5], 699, 412, [18, null]], [21, "setshade", 544, 328, [15, 22, 17]], [22, "heading", 629, 328, [21, null]], [23, "back", 544, 454, [32, 24, 25]], [24, ["number", 400], 602, 454, [23, null]], [25, "forward", 544, 496, [23, 26, 33]], [26, ["random", 0], 615, 496, [25, 27, 28, null]], [27, ["number", 190], 701, 496, [26, null]], [28, ["number", 210], 701, 538, [26, null]], [29, "left", 544, 580, [33, 30, null]], [30, ["number", 1], 602, 580, [29, null]], [31, ["vspace", 0], 241, 469, [4, 35]], [32, ["vspace", 0], 544, 412, [17, 23]], [33, ["vspace", 0], 544, 538, [25, 29]], [34, "penup", 241, 311, [2, 4]], [35, "pendown", 241, 511, [31, 11]], [36, "hat1", 479, 184, [null, 13]], [37, "stack1", 241, 587, [11, null]]] \ No newline at end of file +[[0, ["start", 2.0], 180, 200, [null, 1]], +[1, "clean", 180, 242, [0, 11]], +[2, "repeat", 180, 326, [11, 3, 34, null]], +[3, ["number", 30], 231, 326, [2, null]], +[4, ["setxy2", 20.0], 245, 428, [34, 5, 8, 31]], +[5, ["random", 0], 306, 428, [4, 6, 7, null]], +[6, ["number", -600], 365, 428, [5, null]], +[7, ["number", 600], 365, 470, [5, null]], +[8, ["random", 0], 306, 510, [4, 9, 10, null]], +[9, ["number", -450], 365, 510, [8, null]], +[10, ["number", 450], 365, 552, [8, null]], +[11, "setpensize", 180, 284, [1, 12, 2]], +[12, ["number", 10], 281, 284, [11, null]], +[13, "repeat", 500, 250, [36, 14, 15, null]], +[14, ["number", 720], 551, 250, [13, null]], +[15, "forward", 565, 310, [13, 16, 21]], +[16, ["number", 200], 639, 310, [15, null]], +[17, "setcolor", 565, 394, [21, 18, 32]], +[18, ["division2", 0], 646, 394, [17, 19, 20]], +[19, "xcor", 700, 394, [18, null]], +[20, ["number", 5], 724, 436, [18, null]], +[21, "setshade", 565, 352, [15, 22, 17]], +[22, "heading", 643, 352, [21, null]], +[23, "back", 565, 478, [32, 24, 25]], +[24, ["number", 400], 623, 478, [23, null]], +[25, "forward", 565, 520, [23, 26, 33]], +[26, ["random", 0], 639, 520, [25, 27, 28, null]], +[27, ["number", 190], 698, 520, [26, null]], +[28, ["number", 210], 698, 562, [26, null]], +[29, "left", 565, 604, [33, 30, null]], +[30, ["number", 1], 644, 604, [29, null]], +[31, ["vspace", 0], 245, 552, [4, 35]], +[32, ["vspace", 0], 565, 436, [17, 23]], +[33, ["vspace", 0], 565, 562, [25, 29]], +[34, "penup", 245, 386, [2, 4]], +[35, "pendown", 245, 594, [31, 38]], +[36, "hat", 500, 200, [null, 37, 13]], +[37, ["string", "bird"], 559, 208, [36, null]], +[38, "stack", 245, 636, [35, 39, null]], +[39, ["string", "bird"], 304, 636, [38, null]]] diff --git a/samples/graphics-bubbles.ta b/samples/graphics-bubbles.ta index c203686..0d3c680 100644 --- a/samples/graphics-bubbles.ta +++ b/samples/graphics-bubbles.ta @@ -1 +1,36 @@ -[[0, "setcolor", 252, 251, [12, 1, 2]], [1, ["number", 60], 329, 251, [0, null]], [2, "repeat", 252, 293, [0, 3, 31, null]], [3, ["number", 5000], 303, 293, [2, null]], [4, ["setxy2", 20.0], 317, 387, [31, 5, 6, 27]], [5, ["random", 0], 375, 387, [4, 23, 24, null]], [6, ["random", 0], 375, 469, [4, 25, 26, null]], [7, "storeinbox1", 317, 587, [32, 14, 28]], [8, "setpensize", 317, 671, [28, 20, 29]], [9, "setshade", 317, 755, [29, 17, 30]], [10, "forward", 317, 839, [30, 11, null]], [11, ["number", 1], 388, 839, [10, null]], [12, "clean", 252, 217, [13, 0]], [13, ["start", 2.0], 252, 175, [null, 12]], [14, ["plus2", 0], 435, 587, [7, 15, 16]], [15, "ycor", 489, 587, [14, null]], [16, ["number", 900], 489, 629, [14, null]], [17, ["division2", 0], 402, 755, [9, 18, 19]], [18, "box1", 456, 755, [17, null]], [19, ["number", 12], 480, 797, [17, null]], [20, ["division2", 0], 419, 671, [8, 21, 22]], [21, "box1", 473, 671, [20, null]], [22, ["number", 9], 497, 713, [20, null]], [23, "leftpos", 461, 387, [5, null]], [24, "rightpos", 461, 429, [5, null]], [25, "bottompos", 461, 469, [6, null]], [26, "toppos", 461, 511, [6, null]], [27, ["vspace", 0], 317, 511, [4, 32]], [28, ["vspace", 0], 317, 629, [7, 8]], [29, ["vspace", 0], 317, 713, [8, 9]], [30, ["vspace", 0], 317, 797, [9, 10]], [31, "penup", 317, 353, [2, 4]], [32, "pendown", 317, 553, [27, 7]]] \ No newline at end of file +[[0, "setcolor", 159, 215, [11, 1, 2]], +[1, ["number", 60], 240, 215, [0, null]], +[2, "repeat", 159, 257, [0, 3, 23, null]], +[3, ["number", 5000], 210, 257, [2, null]], +[4, ["setxy2", 20.0], 224, 359, [23, 5, 6, 20]], +[5, ["random", 0], 285, 359, [4, 32, 33, null]], +[6, ["random", 0], 285, 441, [4, 34, 35, null]], +[7, "setpensize", 224, 693, [31, 18, 21]], +[8, "setshade", 224, 777, [21, 16, 22]], +[9, "forward", 224, 861, [22, 10, null]], +[10, ["number", 1], 298, 861, [9, null]], +[11, "clean", 159, 173, [12, 0]], +[12, ["start", 2.0], 159, 131, [null, 11]], +[13, ["plus2", 0], 319, 609, [30, 14, 15]], +[14, "ycor", 373, 609, [13, null]], +[15, ["number", 900], 373, 651, [13, null]], +[16, ["division2", 0], 302, 777, [8, 28, 17]], +[17, ["number", 12], 380, 819, [16, null]], +[18, ["division2", 0], 325, 693, [7, 26, 19]], +[19, ["number", 9], 403, 735, [18, null]], +[20, ["vspace", 0], 224, 483, [4, 24]], +[21, ["vspace", 0], 224, 735, [7, 8]], +[22, ["vspace", 0], 224, 819, [8, 9]], +[23, "penup", 224, 317, [2, 4]], +[24, "pendown", 224, 525, [20, 30]], +[25, ["string", "my box"], 319, 567, [30, null]], +[26, "box", 379, 693, [18, 27, null]], +[27, ["string", "my box"], 434, 693, [26, null]], +[28, "box", 356, 777, [16, 29, null]], +[29, ["string", "my box"], 411, 777, [28, null]], +[30, ["storein", 0], 224, 567, [24, 25, 13, 31]], +[31, ["vspace", 0], 224, 651, [30, 7]], +[32, ["number", -600.0], 344, 359, [5, null]], +[33, ["number", 600.0], 344, 401, [5, null]], +[34, ["number", -450.0], 344, 441, [6, null]], +[35, ["number", 450.0], 344, 483, [6, null]]] diff --git a/samples/graphics-candyvortex.ta b/samples/graphics-candyvortex.ta index 6e5f211..f4c2294 100644 --- a/samples/graphics-candyvortex.ta +++ b/samples/graphics-candyvortex.ta @@ -1 +1,16 @@ -[[0, ["start", 2.0], 226, 175, [null, 1]], [1, "clean", 226, 217, [0, 2]], [2, "repeat", 226, 251, [1, 3, 4, null]], [3, ["number", 350], 277, 251, [2, null]], [4, "setpensize", 291, 311, [2, 5, 6]], [5, "heading", 393, 311, [4, null]], [6, "forward", 291, 353, [4, 7, 8]], [7, ["number", 1000], 362, 353, [6, null]], [8, "setcolor", 291, 395, [6, 9, 10]], [9, "xcor", 368, 395, [8, null]], [10, "setshade", 291, 437, [8, 11, 12]], [11, "ycor", 376, 437, [10, null]], [12, "back", 291, 479, [10, 13, 14]], [13, ["number", 1000], 349, 479, [12, null]], [14, "left", 291, 521, [12, 15, null]], [15, ["number", 1], 349, 521, [14, null]]] \ No newline at end of file +[[0, ["start", 2.0], 226, 175, [null, 1]], +[1, "clean", 226, 217, [0, 2]], +[2, "repeat", 226, 251, [1, 3, 4, null]], +[3, ["number", 350], 277, 251, [2, null]], +[4, "setpensize", 291, 311, [2, 5, 6]], +[5, "heading", 393, 311, [4, null]], +[6, "forward", 291, 353, [4, 7, 8]], +[7, ["number", 1000], 362, 353, [6, null]], +[8, "setcolor", 291, 395, [6, 9, 10]], +[9, "xcor", 368, 395, [8, null]], +[10, "setshade", 291, 437, [8, 11, 12]], +[11, "ycor", 376, 437, [10, null]], +[12, "back", 291, 479, [10, 13, 14]], +[13, ["number", 1000], 349, 479, [12, null]], +[14, "left", 291, 521, [12, 15, null]], +[15, ["number", 1], 349, 521, [14, null]]] \ No newline at end of file diff --git a/samples/graphics-city.ta b/samples/graphics-city.ta index f988e25..e501e16 100644 --- a/samples/graphics-city.ta +++ b/samples/graphics-city.ta @@ -1,136 +1,149 @@ -[[0, ["start", 2.0], 579, 84, [null, 74]], -[1, "forward", 1189, 800, [5, 4, 2]], -[2, "right", 1189, 842, [1, 3, null]], -[3, ["number", 90], 1247, 842, [2, null]], -[4, "box1", 1261, 800, [1, null]], -[5, "repeat", 1127, 740, [8, 6, 1, 9]], -[6, ["number", 4], 1175, 740, [5, null]], -[7, ["vspace", 0], 1127, 860, [9, 18]], -[8, "startfill", 1127, 698, [22, 5]], -[9, "stopfill", 1127, 818, [5, 7]], -[10, "repeat", 1127, 986, [12, 11, 13, 48]], -[11, ["number", 4], 1175, 986, [10, null]], -[12, ["vspace", 0], 1127, 944, [18, 10]], -[13, "forward", 1189, 1046, [10, 16, 14]], -[14, "right", 1189, 1088, [13, 15, null]], -[15, ["number", 90], 1247, 1088, [14, null]], -[16, "box1", 1261, 1046, [13, null]], -[17, "storeinbox1", 579, 252, [92, 94, 119]], -[18, "setshade", 1127, 902, [7, 21, 12]], -[19, ["number", 50.0], 1267, 944, [21, null]], -[20, "shade", 1267, 902, [21, null]], -[21, ["plus2", 0], 1213, 902, [18, 20, 19]], -[22, "seth", 1127, 656, [25, 23, 8]], -[23, ["number", 45.0], 1185, 656, [22, null]], -[24, "hat1", 76, 572, [null, 26]], -[25, "hat2", 1127, 614, [null, 22]], -[26, "seth", 76, 614, [24, 27, 77]], -[27, ["number", 180.0], 134, 614, [26, null]], -[28, "ycor", 249, 656, [30, null]], -[29, "bottompos", 273, 698, [30, null]], -[30, ["minus2", 0], 195, 656, [77, 28, 29]], -[31, "forward", 138, 800, [37, 78, 40]], -[32, "forward", 138, 884, [40, 76, 36]], -[33, ["number", 2.0], 318, 926, [34, null]], -[34, "sqrt", 264, 926, [76, 33]], -[35, "box1", 264, 884, [76, null]], -[36, ["vspace", 0], 138, 926, [32, 42]], -[37, "repeat", 76, 740, [49, 38, 31, 50]], -[38, ["number", 2.0], 124, 740, [37, null]], -[39, ["vspace", 80], 76, 860, [50, 63]], -[40, "left", 138, 842, [31, 41, 32]], -[41, ["number", 90], 196, 842, [40, null]], -[42, "left", 138, 968, [36, 43, null]], -[43, ["number", 90], 196, 968, [42, null]], -[44, "setshade", 1127, 1356, [91, 47, null]], -[45, ["number", 50.0], 1291, 1398, [47, null]], -[46, "shade", 1267, 1356, [47, null]], -[47, ["minus2", 0], 1213, 1356, [44, 46, 45]], -[48, ["vspace", 20], 1127, 1064, [10, 81]], -[49, "startfill", 76, 698, [77, 37]], -[50, "stopfill", 76, 818, [37, 39]], -[51, "repeat", 76, 1146, [70, 52, 53, 71]], -[52, ["number", 2], 124, 1146, [51, null]], -[53, "forward", 138, 1206, [51, 79, 54]], -[54, "left", 138, 1248, [53, 55, 56]], -[55, ["number", 90], 196, 1248, [54, null]], -[56, "forward", 138, 1290, [54, 80, 60]], -[57, "box1", 264, 1290, [80, null]], -[58, "sqrt", 264, 1332, [80, 59]], -[59, ["number", 2], 318, 1332, [58, null]], -[60, ["vspace", 0], 138, 1332, [56, 61]], -[61, "left", 138, 1374, [60, 62, null]], -[62, ["number", 90], 196, 1374, [61, null]], -[63, "setshade", 76, 1062, [39, 69, 70]], -[64, ["number", 50.0], 216, 1104, [69, null]], -[65, "shade", 216, 1062, [69, null]], -[66, "setshade", 76, 1466, [71, 75, null]], -[67, ["number", 50.0], 240, 1508, [75, null]], -[68, "shade", 216, 1466, [75, null]], -[69, ["plus2", 0], 162, 1062, [63, 65, 64]], -[70, ["vspace", 0], 76, 1104, [63, 51]], -[71, ["vspace", 100], 76, 1224, [51, 66]], -[72, "stack1", 641, 938, [105, 73]], -[73, "stack2", 641, 980, [72, 113]], -[74, "clean", 579, 126, [0, 92]], -[75, ["minus2", 0], 162, 1466, [66, 68, 67]], -[76, ["product2", 0], 210, 884, [32, 35, 34]], -[77, "storeinbox2", 76, 656, [26, 30, 49]], -[78, "box2", 210, 800, [31, null]], -[79, "box2", 210, 1206, [53, null]], -[80, ["product2", 0], 210, 1290, [56, 57, 58]], -[81, "seth", 1127, 1146, [48, 82, 83]], -[82, ["number", 135.0], 1185, 1146, [81, null]], -[83, "forward", 1127, 1188, [81, 84, 85]], -[84, "box1", 1199, 1188, [83, null]], -[85, "seth", 1127, 1230, [83, 86, 90]], -[86, ["number", 180.0], 1185, 1230, [85, null]], -[87, "ycor", 1253, 1272, [88, null]], -[88, ["minus2", 0], 1199, 1272, [90, 87, 89]], -[89, "bottompos", 1277, 1314, [88, null]], -[90, "forward", 1127, 1272, [85, 88, 91]], -[91, ["vspace", 0], 1127, 1314, [90, 44]], -[92, ["fillscreen", 0], 579, 168, [74, 93, 133, 17]], -[93, ["number", 60], 665, 168, [92, null]], -[94, ["random", 0], 698, 252, [17, 95, 96, null]], -[95, ["number", 75.0], 786, 252, [94, null]], -[96, ["number", 125.0], 786, 294, [94, null]], -[97, "repeat", 579, 462, [112, 98, 131, null]], -[98, ["number", 100.0], 627, 462, [97, null]], -[99, ["setxy2", 40], 641, 732, [104, 100, 110, 105]], -[100, ["random", 20], 699, 732, [99, 134, 102, null]], -[101, "leftpos", 841, 732, [134, null]], -[102, "rightpos", 787, 814, [100, null]], -[103, "toppos", 702, 378, [109, null]], -[104, "penup", 641, 690, [127, 99]], -[105, "pendown", 641, 896, [99, 72]], -[106, ["storein", 0], 579, 336, [119, 107, 109, 112]], -[107, ["string", "top"], 648, 336, [106, null]], -[108, ["number", 100.0], 726, 420, [109, null]], -[109, ["minus2", 0], 648, 378, [106, 103, 108]], -[110, "box", 699, 854, [99, 111, null]], -[111, ["string", "top"], 754, 854, [110, null]], -[112, ["vspace", 0], 579, 420, [106, 97]], -[113, ["storein", 0], 641, 1022, [73, 114, 118, null]], -[114, ["string", "top"], 710, 1022, [113, null]], -[115, ["number", 3.0], 788, 1106, [118, null]], -[116, "box", 764, 1064, [118, 117, null]], -[117, ["string", "top"], 819, 1064, [116, null]], -[118, ["minus2", 0], 710, 1064, [113, 116, 115]], -[119, ["vspace", 0], 579, 294, [17, 106]], -[120, "setshade", 641, 606, [132, 126, 127]], -[121, ["number", 8.0], 805, 688, [126, null]], -[122, "box", 859, 648, [125, 123, null]], -[123, ["string", "top"], 914, 648, [122, null]], -[124, "toppos", 835, 606, [125, null]], -[125, ["minus2", 0], 781, 606, [126, 124, 122]], -[126, ["division2", 20], 727, 606, [120, 125, 121]], -[127, ["vspace", 0], 641, 648, [120, 104]], -[128, ["random", 0], 719, 522, [131, 129, 130, null]], -[129, ["number", 0], 807, 522, [128, null]], -[130, ["number", 10.0], 807, 564, [128, null]], -[131, "setcolor", 641, 522, [97, 128, 132]], -[132, ["vspace", 0], 641, 564, [131, 120]], -[133, ["number", 0.0], 665, 210, [92, null]], -[134, ["minus2", 0], 787, 732, [100, 101, 135]], -[135, ["number", 50.0], 865, 774, [134, null]]] +[[0, ["start", 2.0], 401, 0, [null, 65]], +[1, "forward", 784, 194, [4, 143, 2]], +[2, "right", 784, 236, [1, 3, null]], +[3, ["number", 90], 842, 236, [2, null]], +[4, "repeat", 719, 134, [7, 5, 1, 8]], +[5, ["number", 4], 770, 134, [4, null]], +[6, ["vspace", 0], 719, 254, [8, 15]], +[7, "startfill", 719, 92, [19, 4]], +[8, "stopfill", 719, 212, [4, 6]], +[9, "repeat", 719, 380, [11, 10, 12, 42]], +[10, ["number", 4], 770, 380, [9, null]], +[11, ["vspace", 0], 719, 338, [15, 9]], +[12, "forward", 784, 440, [9, 145, 13]], +[13, "right", 784, 482, [12, 14, null]], +[14, ["number", 90], 842, 482, [13, null]], +[15, "setshade", 719, 296, [6, 18, 11]], +[16, ["number", 50], 858, 338, [18, null]], +[17, "shade", 858, 296, [18, null]], +[18, ["plus2", 0], 804, 296, [15, 17, 16]], +[19, "seth", 719, 50, [141, 20, 7]], +[20, ["number", 45], 777, 50, [19, null]], +[21, "seth", 57, 191, [131, 22, 125]], +[22, ["number", 180], 115, 191, [21, null]], +[23, "ycor", 179, 275, [25, null]], +[24, "bottompos", 203, 317, [25, null]], +[25, ["minus2", 0], 125, 275, [125, 23, 24]], +[26, "forward", 122, 419, [31, 133, 34]], +[27, "forward", 122, 503, [34, 67, 30]], +[28, ["number", 2], 301, 545, [29, null]], +[29, "sqrt", 247, 545, [67, 28]], +[30, ["vspace", 0], 122, 545, [27, 36]], +[31, "repeat", 57, 359, [43, 32, 26, 44]], +[32, ["number", 2], 108, 359, [31, null]], +[33, ["vspace", 60], 57, 479, [44, 56]], +[34, "left", 122, 461, [26, 35, 27]], +[35, ["number", 90], 180, 461, [34, null]], +[36, "left", 122, 587, [30, 37, null]], +[37, ["number", 90], 180, 587, [36, null]], +[38, "setshade", 719, 750, [78, 41, null]], +[39, ["number", 50], 882, 792, [41, null]], +[40, "shade", 858, 750, [41, null]], +[41, ["minus2", 0], 804, 750, [38, 40, 39]], +[42, ["vspace", 20], 719, 458, [9, 69]], +[43, "startfill", 57, 317, [125, 31]], +[44, "stopfill", 57, 437, [31, 33]], +[45, "repeat", 57, 725, [63, 46, 47, 64]], +[46, ["number", 2], 108, 725, [45, null]], +[47, "forward", 122, 785, [45, 137, 48]], +[48, "left", 122, 827, [47, 49, 50]], +[49, ["number", 90], 180, 827, [48, null]], +[50, "forward", 122, 869, [48, 68, 53]], +[51, "sqrt", 247, 911, [68, 52]], +[52, ["number", 2], 301, 911, [51, null]], +[53, ["vspace", 0], 122, 911, [50, 54]], +[54, "left", 122, 953, [53, 55, null]], +[55, ["number", 90], 180, 953, [54, null]], +[56, "setshade", 57, 641, [33, 62, 63]], +[57, ["number", 50], 196, 683, [62, null]], +[58, "shade", 196, 641, [62, null]], +[59, "setshade", 57, 1005, [64, 66, null]], +[60, ["number", 50], 220, 1047, [66, null]], +[61, "shade", 196, 1005, [66, null]], +[62, ["plus2", 0], 142, 641, [56, 58, 57]], +[63, ["vspace", 0], 57, 683, [56, 45]], +[64, ["vspace", 80], 57, 803, [45, 59]], +[65, "clean", 401, 42, [0, 79]], +[66, ["minus2", 0], 142, 1005, [59, 61, 60]], +[67, ["product2", 0], 193, 503, [27, 135, 29]], +[68, ["product2", 0], 193, 869, [50, 139, 51]], +[69, "seth", 719, 540, [42, 70, 71]], +[70, ["number", 135], 777, 540, [69, null]], +[71, "forward", 719, 582, [69, 147, 72]], +[72, "seth", 719, 624, [71, 73, 77]], +[73, ["number", 180], 777, 624, [72, null]], +[74, "ycor", 844, 666, [75, null]], +[75, ["minus2", 0], 790, 666, [77, 74, 76]], +[76, "bottompos", 868, 708, [75, null]], +[77, "forward", 719, 666, [72, 75, 78]], +[78, ["vspace", 0], 719, 708, [77, 38]], +[79, ["fillscreen", 0], 401, 84, [65, 80, 120, 123]], +[80, ["number", 60], 483, 84, [79, null]], +[81, ["random", 0], 469, 210, [123, 82, 83, null]], +[82, ["number", 75], 555, 210, [81, null]], +[83, ["number", 125], 555, 252, [81, null]], +[84, "repeat", 401, 420, [99, 85, 118, null]], +[85, ["number", 100], 452, 420, [84, null]], +[86, ["setxy2", 40], 466, 690, [91, 87, 97, 92]], +[87, ["random", 20], 524, 690, [86, 121, 89, null]], +[88, "leftpos", 664, 690, [121, null]], +[89, "rightpos", 610, 772, [87, null]], +[90, "toppos", 523, 336, [96, null]], +[91, "penup", 466, 648, [114, 86]], +[92, "pendown", 466, 854, [86, 127]], +[93, ["storein", 0], 401, 294, [106, 94, 96, 99]], +[94, ["string", "top"], 469, 294, [93, null]], +[95, ["number", 100], 547, 378, [96, null]], +[96, ["minus2", 0], 469, 336, [93, 90, 95]], +[97, "box", 524, 812, [86, 98, null]], +[98, ["string", "top"], 579, 812, [97, null]], +[99, ["vspace", 0], 401, 378, [93, 84]], +[100, ["storein", 0], 466, 980, [129, 101, 105, null]], +[101, ["string", "top"], 534, 980, [100, null]], +[102, ["number", 3], 612, 1064, [105, null]], +[103, "box", 588, 1022, [105, 104, null]], +[104, ["string", "top"], 643, 1022, [103, null]], +[105, ["minus2", 0], 534, 1022, [100, 103, 102]], +[106, ["vspace", 0], 401, 252, [123, 93]], +[107, "setshade", 466, 564, [119, 113, 114]], +[108, ["number", 8], 629, 646, [113, null]], +[109, "box", 683, 606, [112, 110, null]], +[110, ["string", "top"], 738, 606, [109, null]], +[111, "toppos", 659, 564, [112, null]], +[112, ["minus2", 0], 605, 564, [113, 111, 109]], +[113, ["division2", 20], 551, 564, [107, 112, 108]], +[114, ["vspace", 0], 466, 606, [107, 91]], +[115, ["random", 0], 543, 480, [118, 116, 117, null]], +[116, ["number", 0], 629, 480, [115, null]], +[117, ["number", 10], 629, 522, [115, null]], +[118, "setcolor", 466, 480, [84, 115, 119]], +[119, ["vspace", 0], 466, 522, [118, 107]], +[120, ["number", 0], 483, 126, [79, null]], +[121, ["minus2", 0], 610, 690, [87, 88, 122]], +[122, ["number", 50], 688, 732, [121, null]], +[123, ["storein", 0], 401, 168, [79, 124, 81, 106]], +[124, ["string", "my box 1"], 469, 168, [123, null]], +[125, ["storein", 0], 57, 233, [21, 126, 25, 43]], +[126, ["string", "my box 2"], 125, 233, [125, null]], +[127, "stack", 466, 896, [92, 128, 129]], +[128, ["string", "building"], 524, 896, [127, null]], +[129, "stack", 466, 938, [127, 130, 100]], +[130, ["string", "roof"], 524, 938, [129, null]], +[131, "hat", 57, 141, [null, 132, 21]], +[132, ["string", "building"], 115, 149, [131, null]], +[133, "box", 193, 419, [26, 134, null]], +[134, ["string", "my box 2"], 248, 419, [133, null]], +[135, "box", 247, 503, [67, 136, null]], +[136, ["string", "my box 1"], 302, 503, [135, null]], +[137, "box", 193, 785, [47, 138, null]], +[138, ["string", "my box 2"], 248, 785, [137, null]], +[139, "box", 247, 869, [68, 140, null]], +[140, ["string", "my box 1"], 302, 869, [139, null]], +[141, "hat", 719, 0, [null, 142, 19]], +[142, ["string", "roof"], 777, 8, [141, null]], +[143, "box", 855, 194, [1, 144, null]], +[144, ["string", "my box 1"], 910, 194, [143, null]], +[145, "box", 855, 440, [12, 146, null]], +[146, ["string", "my box 1"], 910, 440, [145, null]], +[147, "box", 790, 582, [71, 148, null]], +[148, ["string", "my box 1"], 845, 582, [147, null]]] diff --git a/samples/graphics-colors.ta b/samples/graphics-colors.ta index 82ef700..6a48e9a 100644 --- a/samples/graphics-colors.ta +++ b/samples/graphics-colors.ta @@ -1 +1,14 @@ -[[0, "setpensize", 175, 251, [2, 1, 3]], [1, ["number", 15], 277, 251, [0, null]], [2, "clean", 175, 217, [13, 0]], [3, "repeat", 175, 293, [0, 4, 5, null]], [4, ["number", 360], 226, 293, [3, null]], [5, "setcolor", 240, 353, [3, 6, 7]], [6, "heading", 317, 353, [5, null]], [7, "forward", 240, 395, [5, 8, 9]], [8, ["number", 1000], 311, 395, [7, null]], [9, "back", 240, 437, [7, 10, 11]], [10, ["number", 1000], 298, 437, [9, null]], [11, "right", 240, 479, [9, 12, null]], [12, ["number", 1], 298, 479, [11, null]], [13, ["start", 2.0], 175, 175, [null, 2]]] \ No newline at end of file +[[0, "setpensize", 175, 251, [2, 1, 3]], +[1, ["number", 15], 277, 251, [0, null]], +[2, "clean", 175, 217, [13, 0]], +[3, "repeat", 175, 293, [0, 4, 5, null]], +[4, ["number", 360], 226, 293, [3, null]], +[5, "setcolor", 240, 353, [3, 6, 7]], +[6, "heading", 317, 353, [5, null]], +[7, "forward", 240, 395, [5, 8, 9]], +[8, ["number", 1000], 311, 395, [7, null]], +[9, "back", 240, 437, [7, 10, 11]], +[10, ["number", 1000], 298, 437, [9, null]], +[11, "right", 240, 479, [9, 12, null]], +[12, ["number", 1], 298, 479, [11, null]], +[13, ["start", 2.0], 175, 175, [null, 2]]] \ No newline at end of file diff --git a/samples/graphics-csquiral.ta b/samples/graphics-csquiral.ta index bd34654..678dbfd 100644 --- a/samples/graphics-csquiral.ta +++ b/samples/graphics-csquiral.ta @@ -1 +1,27 @@ -[[0, "start", 175, 189, [null, 1]], [1, "clean", 175, 231, [0, 2]], [2, "storeinbox1", 175, 265, [1, 3, 4]], [3, ["number", 1], 293, 265, [2, null]], [4, "setpensize", 175, 307, [2, 5, 6]], [5, ["number", 20], 277, 307, [4, null]], [6, "repeat", 175, 349, [4, 7, 8, null]], [7, ["number", 1300], 226, 349, [6, null]], [8, "forward", 240, 409, [6, 9, 10]], [9, "box1", 311, 409, [8, null]], [10, "right", 240, 451, [8, 11, 12]], [11, ["number", 91], 298, 451, [10, null]], [12, "setcolor", 240, 493, [10, 22, 16]], [13, "division2", 451, 493, [22, 14, 15]], [14, "xcor", 505, 493, [13, null]], [15, ["number", 6], 529, 539, [13, null]], [16, "setshade", 240, 535, [12, 17, 18]], [17, "heading", 325, 535, [16, null]], [18, "storeinbox1", 240, 577, [16, 19, null]], [19, "plus2", 358, 577, [18, 20, 21]], [20, "box1", 412, 577, [19, null]], [21, ["number", 1], 412, 619, [19, null]], [22, ["identity2", 40], 317, 493, [12, 13]]] \ No newline at end of file +[[0, ["start", 2.0], 160, 180, [null, 1]], +[1, "clean", 160, 222, [0, 18]], +[2, "setpensize", 160, 348, [18, 3, 4]], +[3, ["number", 20], 261, 348, [2, null]], +[4, "repeat", 160, 390, [2, 5, 6, null]], +[5, ["number", 1300], 211, 390, [4, null]], +[6, "forward", 225, 450, [4, 21, 7]], +[7, "right", 225, 492, [6, 8, 9]], +[8, ["number", 91], 297, 492, [7, null]], +[9, "setcolor", 225, 534, [7, 17, 13]], +[10, ["division2", 0], 440, 534, [17, 11, 12]], +[11, "xcor", 494, 534, [10, null]], +[12, ["number", 6], 518, 576, [10, null]], +[13, "setshade", 225, 576, [9, 14, 25]], +[14, "heading", 303, 576, [13, null]], +[15, ["plus2", 0], 320, 660, [25, 23, 16]], +[16, ["number", 1], 374, 702, [15, null]], +[17, ["identity2", 40], 306, 534, [9, 10]], +[18, ["storein", 0], 160, 264, [1, 19, 20, 2]], +[19, ["string", "my box"], 255, 264, [18, null]], +[20, ["number", 1], 255, 306, [18, null]], +[21, "box", 299, 450, [6, 22, null]], +[22, ["string", "my box"], 354, 450, [21, null]], +[23, "box", 374, 660, [15, 24, null]], +[24, ["string", "my box"], 429, 660, [23, null]], +[25, ["storein", 0], 225, 618, [13, 26, 15, null]], +[26, ["string", "my box"], 320, 618, [25, null]]] diff --git a/samples/graphics-curlygates.ta b/samples/graphics-curlygates.ta index 3e36a1e..481c5ad 100644 --- a/samples/graphics-curlygates.ta +++ b/samples/graphics-curlygates.ta @@ -1 +1,63 @@ -[[0, ["start", 2.0], 229, 154, [null, 1]], [1, ["fillscreen", 0], 229, 196, [0, 2, 3, 4]], [2, ["number", 50], 311, 196, [1, null]], [3, ["number", 30], 311, 238, [1, null]], [4, "repeat", 229, 280, [1, 5, 50, null]], [5, ["number", 20], 280, 280, [4, null]], [6, ["setxy2", 20.0], 294, 374, [50, 7, 8, 45]], [7, ["random", 0], 352, 374, [6, 46, 47, null]], [8, ["random", 0], 352, 456, [6, 48, 49, null]], [9, "seth", 294, 574, [51, 10, 29]], [10, ["random", 0], 393, 574, [9, 11, 12, null]], [11, ["number", 0], 479, 574, [10, null]], [12, ["number", 360], 479, 616, [10, null]], [13, "stack2", 611, 352, [17, 27]], [14, "hat2", 81, 564, [null, 31]], [15, "setcolor", 611, 268, [19, 16, 17]], [16, ["number", 20], 688, 268, [15, null]], [17, "setshade", 611, 310, [15, 18, 13]], [18, ["number", 60], 696, 310, [17, null]], [19, "setpensize", 611, 226, [30, 20, 15]], [20, ["number", 20], 713, 226, [19, null]], [21, "setcolor", 611, 428, [27, 22, 23]], [22, ["number", 0], 688, 428, [21, null]], [23, "setshade", 611, 470, [21, 24, 44]], [24, ["random", 0], 696, 470, [23, 25, 26, null]], [25, ["number", 60], 782, 470, [24, null]], [26, ["number", 80], 782, 512, [24, null]], [27, "setpensize", 611, 386, [13, 28, 21]], [28, ["number", 12], 713, 386, [27, null]], [29, "stack1", 294, 616, [9, null]], [30, "hat1", 611, 184, [null, 19]], [31, "repeat", 81, 606, [14, 32, 33, null]], [32, ["number", 3], 132, 606, [31, null]], [33, "storeinbox1", 146, 666, [31, 34, 35]], [34, ["number", 200], 264, 666, [33, null]], [35, "repeat", 146, 708, [33, 36, 37, null]], [36, ["number", 20], 197, 708, [35, null]], [37, ["arc", 0], 211, 768, [35, 38, 39, 40]], [38, ["number", 30], 269, 768, [37, null]], [39, "box1", 269, 810, [37, null]], [40, "storeinbox1", 211, 852, [37, 41, null]], [41, ["division2", 0], 329, 852, [40, 42, 43]], [42, "box1", 383, 852, [41, null]], [43, ["number", 1.2], 407, 894, [41, null]], [44, "stack2", 611, 512, [23, null]], [45, ["vspace", 0], 294, 498, [6, 51]], [46, "leftpos", 438, 374, [7, null]], [47, "rightpos", 438, 416, [7, null]], [48, "bottompos", 438, 456, [8, null]], [49, "toppos", 438, 498, [8, null]], [50, "penup", 294, 340, [4, 6]], [51, "pendown", 294, 540, [45, 9]]] \ No newline at end of file +[[0, ["start", 2.0], 0, 120, [null, 1]], +[1, ["fillscreen", 0], 0, 162, [0, 2, 3, 4]], +[2, ["number", 50], 82, 162, [1, null]], +[3, ["number", 30], 82, 204, [1, null]], +[4, "repeat", 0, 246, [1, 5, 40, null]], +[5, ["number", 20], 51, 246, [4, null]], +[6, ["setxy2", 20.0], 65, 348, [40, 7, 8, 35]], +[7, ["random", 0], 123, 348, [6, 36, 37, null]], +[8, ["random", 0], 123, 430, [6, 38, 39, null]], +[9, "seth", 65, 556, [41, 10, 53]], +[10, ["random", 0], 123, 556, [9, 11, 12, null]], +[11, ["number", 0], 209, 556, [10, null]], +[12, ["number", 360], 209, 598, [10, null]], +[13, "setcolor", 360, 212, [17, 14, 15]], +[14, ["number", 20], 437, 212, [13, null]], +[15, "setshade", 360, 254, [13, 16, 44]], +[16, ["number", 60], 445, 254, [15, null]], +[17, "setpensize", 360, 170, [42, 18, 13]], +[18, ["number", 20], 462, 170, [17, null]], +[19, "setcolor", 360, 380, [25, 20, 21]], +[20, ["number", 0], 437, 380, [19, null]], +[21, "setshade", 360, 422, [19, 22, 52]], +[22, ["random", 0], 445, 422, [21, 23, 24, null]], +[23, ["number", 60], 531, 422, [22, null]], +[24, ["number", 80], 531, 464, [22, null]], +[25, "setpensize", 360, 338, [44, 26, 19]], +[26, ["number", 12], 462, 338, [25, null]], +[27, "repeat", 620, 170, [46, 28, 54, null]], +[28, ["number", 3], 671, 170, [27, null]], +[29, "repeat", 685, 314, [54, 30, 31, null]], +[30, ["number", 20], 736, 314, [29, null]], +[31, ["arc", 0], 750, 374, [29, 32, 59, 61]], +[32, ["number", 30], 808, 374, [31, null]], +[33, ["division2", 0], 818, 500, [61, 57, 34]], +[34, ["number", 1.2], 896, 542, [33, null]], +[35, ["vspace", 0], 65, 472, [6, 41]], +[36, "leftpos", 209, 348, [7, null]], +[37, "rightpos", 209, 390, [7, null]], +[38, "bottompos", 209, 430, [8, null]], +[39, "toppos", 209, 472, [8, null]], +[40, "penup", 65, 306, [4, 6]], +[41, "pendown", 65, 514, [35, 9]], +[42, "hat", 360, 120, [null, 43, 17]], +[43, ["string", "action"], 418, 128, [42, null]], +[44, "stack", 360, 296, [15, 45, 25]], +[45, ["string", "draw"], 418, 296, [44, null]], +[46, "hat", 620, 120, [null, 47, 27]], +[47, ["string", "draw"], 678, 128, [46, null]], +[48, "stack", 65, 640, [53, 49, null]], +[49, ["string", "action"], 123, 640, [48, null]], +[50, "stack", 360, 506, [52, 51, null]], +[51, ["string", "draw"], 418, 506, [50, null]], +[52, ["vspace", 0], 360, 464, [21, 50]], +[53, ["vspace", 0], 65, 598, [9, 48]], +[54, ["storein", 0], 685, 230, [27, 55, 56, 29]], +[55, ["string", "my box"], 753, 230, [54, null]], +[56, ["number", 200.0], 753, 272, [54, null]], +[57, "box", 872, 500, [33, 58, null]], +[58, ["string", "my box"], 927, 500, [57, null]], +[59, "box", 808, 416, [31, 60, null]], +[60, ["string", "my box"], 863, 416, [59, null]], +[61, ["storein", 0], 750, 458, [31, 62, 33, null]], +[62, ["string", "my box"], 818, 458, [61, null]]] diff --git a/samples/graphics-dots.ta b/samples/graphics-dots.ta index 718f7d4..5f12daa 100644 --- a/samples/graphics-dots.ta +++ b/samples/graphics-dots.ta @@ -1 +1,30 @@ -[[0, "clean", 263, 217, [1, 2]], [1, "start", 263, 175, [null, 0]], [2, "setcolor", 263, 251, [0, 3, 4]], [3, ["number", 0], 340, 251, [2, null]], [4, "setpensize", 263, 293, [2, 5, 6]], [5, ["number", 20], 365, 293, [4, null]], [6, "storeinbox1", 263, 335, [4, 7, 8]], [7, ["number", 0], 381, 335, [6, null]], [8, "repeat", 263, 377, [6, 9, 10, null]], [9, ["number", 1000], 314, 377, [8, null]], [10, "pendown", 328, 437, [8, 11]], [11, "forward", 328, 471, [10, 12, 13]], [12, ["number", 1], 399, 471, [11, null]], [13, "penup", 328, 513, [11, 14]], [14, "forward", 328, 547, [13, 15, 16]], [15, "box1", 399, 547, [14, null]], [16, "right", 328, 589, [14, 17, 18]], [17, ["number", 93], 386, 589, [16, null]], [18, "storeinbox1", 328, 631, [16, 19, 24]], [19, "plus2", 446, 631, [18, 21, 20]], [20, ["number", 1], 500, 673, [19, null]], [21, "box1", 500, 631, [19, null]], [22, "setcolor", 328, 707, [24, 23, null]], [23, "box1", 405, 707, [22, null]], [24, ["vspace", 0], 328, 673, [18, 22]]] \ No newline at end of file +[[0, "clean", 338, 42, [1, 2]], +[1, ["start", 2.0], 338, 0, [null, 0]], +[2, "setcolor", 338, 84, [0, 3, 4]], +[3, ["number", 0], 415, 84, [2, null]], +[4, "setpensize", 338, 126, [2, 5, 19]], +[5, ["number", 20], 440, 126, [4, null]], +[6, "repeat", 338, 252, [19, 7, 8, null]], +[7, ["number", 1000], 389, 252, [6, null]], +[8, "pendown", 403, 312, [6, 9]], +[9, "forward", 403, 354, [8, 10, 11]], +[10, ["number", 1], 474, 354, [9, null]], +[11, "penup", 403, 396, [9, 12]], +[12, "forward", 403, 438, [11, 22, 13]], +[13, "right", 403, 480, [12, 14, 26]], +[14, ["number", 93], 461, 480, [13, null]], +[15, ["plus2", 0], 471, 564, [26, 28, 16]], +[16, ["number", 1], 525, 606, [15, null]], +[17, "setcolor", 403, 648, [18, 24, null]], +[18, ["vspace", 0], 403, 606, [26, 17]], +[19, ["storein", 0], 338, 168, [4, 20, 21, 6]], +[20, ["string", "my box"], 406, 168, [19, null]], +[21, ["number", 0.0], 406, 210, [19, null]], +[22, "box", 474, 438, [12, 23, null]], +[23, ["string", "my box"], 529, 438, [22, null]], +[24, "box", 480, 648, [17, 25, null]], +[25, ["string", "my box"], 535, 648, [24, null]], +[26, ["storein", 0], 403, 522, [13, 27, 15, 18]], +[27, ["string", "my box"], 471, 522, [26, null]], +[28, "box", 525, 564, [15, 29, null]], +[29, ["string", "my box"], 580, 564, [28, null]]] diff --git a/samples/graphics-flower.ta b/samples/graphics-flower.ta index 4732bc0..7dcc969 100644 --- a/samples/graphics-flower.ta +++ b/samples/graphics-flower.ta @@ -1 +1,44 @@ -[[0, "hat1", 582, 175, [null, 1]], [1, "repeat", 582, 217, [0, 2, 3, null]], [2, ["number", 4], 633, 217, [1, null]], [3, "forward", 647, 277, [1, 4, 5]], [4, "box1", 718, 277, [3, null]], [5, "right", 647, 319, [3, 6, null]], [6, ["number", 90], 705, 319, [5, null]], [7, "hat2", 583, 382, [null, 8]], [8, "repeat", 583, 424, [7, 9, 10, null]], [9, ["number", 10], 634, 424, [8, null]], [10, "stack1", 648, 484, [8, 11]], [11, "right", 648, 518, [10, 12, null]], [12, ["number", 36], 706, 518, [11, null]], [13, ["start", 2.0], 187, 175, [null, 14]], [14, "clean", 187, 217, [13, 15]], [15, "storeinbox1", 187, 251, [14, 16, 17]], [16, ["number", 0], 305, 251, [15, null]], [17, "repeat", 187, 293, [15, 18, 19, null]], [18, ["number", 300], 238, 293, [17, null]], [19, "setshade", 252, 353, [17, 20, 32]], [20, ["minus2", 0], 337, 353, [19, 21, 22]], [21, ["number", 100], 391, 353, [20, null]], [22, "box1", 415, 395, [20, null]], [23, "setcolor", 252, 429, [32, 24, 27]], [24, ["division2", 0], 329, 429, [23, 25, 26]], [25, "box1", 383, 429, [24, null]], [26, ["number", 3], 407, 471, [24, null]], [27, "stack2", 252, 471, [23, 28]], [28, "storeinbox1", 252, 505, [27, 29, null]], [29, ["plus2", 0], 370, 505, [28, 30, 31]], [30, "box1", 424, 505, [29, null]], [31, ["number", 1], 424, 547, [29, null]], [32, ["vspace", 0], 252, 395, [19, 23]]] \ No newline at end of file +[[0, "repeat", 560, 170, [40, 1, 2, null]], +[1, ["number", 4], 611, 170, [0, null]], +[2, "forward", 625, 230, [0, 42, 3]], +[3, "right", 625, 272, [2, 4, null]], +[4, ["number", 90], 683, 272, [3, null]], +[5, "repeat", 300, 170, [36, 6, 38, null]], +[6, ["number", 10], 351, 170, [5, null]], +[7, "right", 365, 272, [38, 8, null]], +[8, ["number", 36], 423, 272, [7, null]], +[9, ["start", 2.0], 60, 120, [null, 10]], +[10, "clean", 60, 162, [9, 22]], +[11, "repeat", 60, 288, [22, 12, 13, null]], +[12, ["number", 300], 111, 288, [11, null]], +[13, "setshade", 125, 348, [11, 14, 21]], +[14, ["minus2", 0], 210, 348, [13, 15, 25]], +[15, ["number", 100], 264, 348, [14, null]], +[16, "setcolor", 125, 432, [21, 17, 35]], +[17, ["division2", 0], 202, 432, [16, 27, 18]], +[18, ["number", 3], 280, 474, [17, null]], +[19, ["plus2", 0], 193, 600, [29, 31, 20]], +[20, ["number", 1], 247, 642, [19, null]], +[21, ["vspace", 0], 125, 390, [13, 16]], +[22, ["storein", 0], 60, 204, [10, 23, 24, 11]], +[23, ["string", "my box"], 128, 204, [22, null]], +[24, ["number", 0.0], 128, 246, [22, null]], +[25, "box", 288, 390, [14, 26, null]], +[26, ["string", "my box"], 343, 390, [25, null]], +[27, "box", 256, 432, [17, 28, null]], +[28, ["string", "my box"], 311, 432, [27, null]], +[29, ["storein", 0], 125, 558, [33, 30, 19, null]], +[30, ["string", "my box"], 193, 558, [29, null]], +[31, "box", 247, 600, [19, 32, null]], +[32, ["string", "my box"], 302, 600, [31, null]], +[33, "stack", 125, 516, [35, 34, 29]], +[34, ["string", "action1"], 183, 516, [33, null]], +[35, ["vspace", 0], 125, 474, [16, 33]], +[36, "hat", 300, 120, [null, 37, 5]], +[37, ["string", "action1"], 358, 128, [36, null]], +[38, "stack", 365, 230, [5, 39, 7]], +[39, ["string", "action2"], 423, 230, [38, null]], +[40, "hat", 560, 120, [null, 41, 0]], +[41, ["string", "action2"], 618, 128, [40, null]], +[42, "box", 696, 230, [2, 43, null]], +[43, ["string", "my box"], 751, 230, [42, null]]] diff --git a/samples/graphics-fountain.ta b/samples/graphics-fountain.ta index d1c5e93..eb490d6 100644 --- a/samples/graphics-fountain.ta +++ b/samples/graphics-fountain.ta @@ -1 +1,58 @@ -[[0, ["fillscreen", 0], 177, 217, [17, 1, 2, 3]], [1, ["number", 10], 259, 217, [0, null]], [2, ["number", 30], 259, 259, [0, null]], [3, "setshade", 177, 301, [0, 4, 49]], [4, ["number", 85], 262, 301, [3, null]], [5, ["setxy2", 0], 177, 377, [49, 6, 7, 50]], [6, ["number", -590], 235, 377, [5, null]], [7, ["number", -450], 235, 419, [5, null]], [8, "setpensize", 177, 495, [50, 9, 10]], [9, ["number", 3], 279, 495, [8, null]], [10, "repeat", 177, 537, [8, 11, 12, null]], [11, ["number", 6], 228, 537, [10, null]], [12, "seth", 242, 597, [10, 13, 14]], [13, ["number", 0], 341, 597, [12, null]], [14, "stack1", 242, 639, [12, 47]], [15, ["setxy2", 20.0], 242, 707, [47, 18, 16, 48]], [16, "ycor", 300, 789, [15, null]], [17, ["start", 2.0], 177, 175, [null, 0]], [18, ["plus2", 0], 300, 707, [15, 19, 20]], [19, "xcor", 354, 707, [18, null]], [20, ["number", 200], 354, 749, [18, null]], [21, "hat1", 431, 178, [null, 22]], [22, "repeat", 431, 220, [21, 23, 24, null]], [23, ["number", 400], 482, 220, [22, null]], [24, "storeinbox1", 496, 280, [22, 25, 45]], [25, ["division2", 0], 614, 280, [24, 26, 27]], [26, "heading", 668, 280, [25, null]], [27, ["number", 2], 692, 322, [25, null]], [28, "storeinbox2", 496, 364, [45, 29, 46]], [29, ["plus2", 0], 614, 364, [28, 30, 31]], [30, "box1", 668, 364, [29, null]], [31, ["number", 5], 668, 406, [29, null]], [32, "setcolor", 496, 448, [46, 33, 44]], [33, ["random", 0], 573, 448, [32, 34, 35, null]], [34, "box1", 659, 448, [33, null]], [35, "box2", 659, 490, [33, null]], [36, ["arc", 0], 496, 532, [44, 37, 38, 39]], [37, ["number", -40], 554, 532, [36, null]], [38, ["number", 3000], 554, 574, [36, null]], [39, ["arc", 0], 496, 616, [36, 40, 41, 42]], [40, ["number", -40], 554, 616, [39, null]], [41, ["number", -3000], 554, 658, [39, null]], [42, "right", 496, 700, [39, 43, null]], [43, ["number", 0.10000000000000001], 554, 700, [42, null]], [44, ["vspace", 0], 496, 490, [32, 36]], [45, ["vspace", 0], 496, 322, [24, 28]], [46, ["vspace", 0], 496, 406, [28, 32]], [47, "penup", 242, 673, [14, 15]], [48, "pendown", 242, 831, [15, null]], [49, "penup", 177, 343, [3, 5]], [50, "pendown", 177, 461, [5, 8]]] \ No newline at end of file +[[0, ["fillscreen", 0], 160, 202, [16, 1, 2, 3]], +[1, ["number", 10], 242, 202, [0, null]], +[2, ["number", 30], 242, 244, [0, null]], +[3, "setshade", 160, 286, [0, 4, 42]], +[4, ["number", 85], 245, 286, [3, null]], +[5, ["setxy2", 0], 160, 370, [42, 6, 7, 43]], +[6, ["number", -590], 218, 370, [5, null]], +[7, ["number", -450], 218, 412, [5, null]], +[8, "setpensize", 160, 496, [43, 9, 10]], +[9, ["number", 3], 262, 496, [8, null]], +[10, "repeat", 160, 538, [8, 11, 12, null]], +[11, ["number", 6], 211, 538, [10, null]], +[12, "seth", 225, 598, [10, 13, 46]], +[13, ["number", 0], 283, 598, [12, null]], +[14, ["setxy2", 20.0], 225, 724, [40, 17, 15, 41]], +[15, "ycor", 283, 806, [14, null]], +[16, ["start", 2.0], 160, 160, [null, 0]], +[17, ["plus2", 0], 283, 724, [14, 18, 19]], +[18, "xcor", 337, 724, [17, null]], +[19, ["number", 200], 337, 766, [17, null]], +[20, "repeat", 520, 210, [44, 21, 48, null]], +[21, ["number", 400], 571, 210, [20, null]], +[22, ["division2", 0], 653, 312, [48, 23, 24]], +[23, "heading", 707, 312, [22, null]], +[24, ["number", 2], 731, 354, [22, null]], +[25, ["plus2", 0], 653, 438, [50, 54, 26]], +[26, ["number", 5], 707, 480, [25, null]], +[27, "setcolor", 585, 522, [39, 28, 37]], +[28, ["random", 0], 662, 522, [27, 52, 56, null]], +[29, ["arc", 0], 585, 606, [37, 30, 31, 32]], +[30, ["number", -40], 643, 606, [29, null]], +[31, ["number", 3000], 643, 648, [29, null]], +[32, ["arc", 0], 585, 690, [29, 33, 34, 35]], +[33, ["number", -40], 643, 690, [32, null]], +[34, ["number", -3000], 643, 732, [32, null]], +[35, "right", 585, 774, [32, 36, null]], +[36, ["number", 0.1], 643, 774, [35, null]], +[37, ["vspace", 0], 585, 564, [27, 29]], +[38, ["vspace", 0], 585, 354, [48, 50]], +[39, ["vspace", 0], 585, 480, [50, 27]], +[40, "penup", 225, 682, [46, 14]], +[41, "pendown", 225, 848, [14, null]], +[42, "penup", 160, 328, [3, 5]], +[43, "pendown", 160, 454, [5, 8]], +[44, "hat", 520, 160, [null, 45, 20]], +[45, ["string", "action"], 578, 168, [44, null]], +[46, "stack", 225, 640, [12, 47, 40]], +[47, ["string", "action"], 283, 640, [46, null]], +[48, ["storein", 0], 585, 270, [20, 49, 22, 38]], +[49, ["string", "my box 1"], 653, 270, [48, null]], +[50, ["storein", 0], 585, 396, [38, 51, 25, 39]], +[51, ["string", "my box 2"], 653, 396, [50, null]], +[52, "box", 748, 522, [28, 53, null]], +[53, ["string", "my box 1"], 803, 522, [52, null]], +[54, "box", 707, 438, [25, 55, null]], +[55, ["string", "my box 1"], 762, 438, [54, null]], +[56, "box", 748, 564, [28, 57, null]], +[57, ["string", "my box 2"], 803, 564, [56, null]]] diff --git a/samples/graphics-op-art.ta b/samples/graphics-op-art.ta index ea255c3..bfe8b14 100644 --- a/samples/graphics-op-art.ta +++ b/samples/graphics-op-art.ta @@ -1,102 +1,121 @@ -[[0, ["start", 2.0], 40, 20, [null, 81]], -[1, ["fillscreen", 0], 40, 314, [87, 90, 2, 14]], -[2, ["number", 50], 126, 356, [1, null]], -[3, "repeat", 300, 62, [24, 10, 5, null]], -[4, ["number", 10], 482, 104, [9, null]], -[5, ["vspace", 0], 364, 122, [3, 70]], -[6, "repeat", 620, 302, [26, 7, 35, null]], -[7, ["number", 3], 670, 302, [6, null]], -[8, "height", 458, 62, [9, null]], -[9, ["division2", 0], 404, 62, [10, 8, 4]], -[10, ["identity2", 0], 350, 62, [3, 9]], -[11, ["division2", 0], 158, 398, [14, 13, 12]], -[12, ["number", 12], 236, 440, [11, null]], -[13, "width", 212, 398, [11, null]], -[14, "storeinbox1", 40, 398, [1, 11, 30]], -[15, ["setxy2", 0], 40, 482, [30, 16, 17, 31]], -[16, "leftpos", 98, 482, [15, null]], -[17, "toppos", 98, 524, [15, null]], -[18, "leftpos", 422, 290, [22, null]], -[19, "ycor", 476, 332, [20, null]], -[20, ["plus2", 0], 422, 332, [22, 19, 21]], -[21, ["number", -10], 476, 374, [20, null]], -[22, ["setxy2", 0], 364, 290, [28, 18, 20, 23]], -[23, ["vspace", 0], 364, 374, [22, 29]], -[24, "hat1", 300, 20, [null, 3]], -[25, "stack1", 40, 734, [73, null]], -[26, "hat2", 620, 260, [null, 6]], -[27, "stack2", 364, 206, [70, 28]], -[28, "penup", 364, 248, [27, 22]], -[29, "pendown", 364, 416, [23, null]], -[30, "penup", 40, 440, [14, 15]], -[31, "pendown", 40, 566, [15, 49]], -[32, "forward", 1025, 456, [79, 36, 80]], -[33, "ifelse", 684, 404, [35, 45, 34, 66, null]], -[34, ["vspace", 0], 762, 472, [33, 68]], -[35, ["vspace", 0], 684, 362, [6, 33]], -[36, "box1", 1095, 456, [32, null]], -[37, "setcolor", 1025, 540, [80, 92, 38]], -[38, "forward", 1025, 582, [37, 39, 77]], -[39, "box1", 1095, 582, [38, null]], -[40, "forward", 1025, 666, [77, 41, 78]], -[41, "box1", 1095, 666, [40, null]], -[42, "setcolor", 1025, 750, [78, 100, 43]], -[43, "forward", 1025, 792, [42, 44, null]], -[44, "box1", 1095, 792, [43, null]], -[45, ["equal2", 0], 748, 370, [33, 76, 46, null]], -[46, ["number", 0], 794, 412, [45, null]], -[47, "seth", 40, 650, [49, 48, 73]], -[48, ["number", 90], 98, 650, [47, null]], -[49, "setpensize", 40, 608, [31, 50, 47]], -[50, ["number", 10], 145, 608, [49, null]], -[51, "setcolor", 1020, 50, [62, 96, 52]], -[52, "forward", 1020, 92, [51, 53, 54]], -[53, "box1", 1090, 92, [52, null]], -[54, "setcolor", 1020, 134, [52, 98, 55]], -[55, "forward", 1020, 176, [54, 56, 57]], -[56, "box1", 1090, 176, [55, null]], -[57, "forward", 1020, 218, [55, 58, 59]], -[58, "box1", 1090, 218, [57, null]], -[59, "setcolor", 1020, 260, [57, 94, 60]], -[60, "forward", 1020, 302, [59, 61, null]], -[61, "box1", 1090, 302, [60, null]], -[62, "hat", 1020, 0, [null, 63, 51]], -[63, ["string", "stripe a"], 1079, 8, [62, null]], -[64, "hat", 1025, 364, [null, 65, 79]], -[65, ["string", "stripe b"], 1084, 372, [64, null]], -[66, "stack", 814, 472, [33, 67, null]], -[67, ["string", "stripe a"], 873, 472, [66, null]], -[68, "stack", 762, 514, [34, 69, null]], -[69, ["string", "stripe b"], 821, 514, [68, null]], -[70, "storeinbox2", 364, 164, [5, 75, 27]], -[71, ["number", 1], 536, 164, [75, null]], -[72, "box2", 560, 206, [75, null]], -[73, "storeinbox2", 40, 692, [47, 74, 25]], -[74, ["number", 0], 158, 692, [73, null]], -[75, ["minus2", 0], 482, 164, [70, 71, 72]], -[76, "box2", 794, 370, [45, null]], -[77, "penup", 1025, 624, [38, 40]], -[78, "pendown", 1025, 708, [40, 42]], -[79, "penup", 1025, 414, [64, 32]], -[80, "pendown", 1025, 498, [32, 37]], -[81, ["storein", 0], 40, 62, [0, 82, 83, 84]], -[82, ["string", "color 1"], 109, 62, [81, null]], -[83, ["number", 40.0], 109, 104, [81, null]], -[84, ["storein", 0], 40, 146, [81, 85, 86, 87]], -[85, ["string", "color 2"], 109, 146, [84, null]], -[86, ["number", 10.0], 109, 188, [84, null]], -[87, ["storein", 0], 40, 230, [84, 88, 89, 1]], -[88, ["string", "color 3"], 109, 230, [87, null]], -[89, ["number", 90.0], 109, 272, [87, null]], -[90, "box", 126, 314, [1, 91, null]], -[91, ["string", "color 1"], 180, 314, [90, null]], -[92, "box", 1103, 540, [37, 93, null]], -[93, ["string", "color 2"], 1157, 540, [92, null]], -[94, "box", 1098, 260, [59, 95, null]], -[95, ["string", "color 2"], 1152, 260, [94, null]], -[96, "box", 1098, 50, [51, 97, null]], -[97, ["string", "color 2"], 1152, 50, [96, null]], -[98, "box", 1098, 134, [54, 99, null]], -[99, ["string", "color 3"], 1152, 134, [98, null]], -[100, "box", 1103, 750, [42, 101, null]], -[101, ["string", "color 3"], 1157, 750, [100, null]]] +[[0, ["start", 2.0], 51, 188, [null, 64]], +[1, ["fillscreen", 0], 51, 486, [70, 73, 2, 94]], +[2, ["number", 50], 133, 528, [1, null]], +[3, ["repeat", 189], 376, 240, [90, 10, 5, null]], +[4, ["number", 10], 567, 282, [9, null]], +[5, ["vspace", 0], 394, 282, [3, 114]], +[6, ["repeat", 114], 710, 159, [85, 7, 30, null]], +[7, ["number", 3], 769, 159, [6, null]], +[8, "height", 543, 240, [9, null]], +[9, ["division2", 0], 489, 240, [10, 8, 4]], +[10, ["identity2", 0], 435, 240, [3, 9]], +[11, ["division2", 0], 119, 612, [94, 13, 12]], +[12, ["number", 12], 197, 654, [11, null]], +[13, "width", 173, 612, [11, null]], +[14, ["setxy2", 0], 51, 696, [25, 15, 16, 26]], +[15, "leftpos", 109, 696, [14, null]], +[16, "toppos", 109, 738, [14, null]], +[17, "leftpos", 452, 534, [21, null]], +[18, "ycor", 506, 576, [19, null]], +[19, ["plus2", 0], 452, 576, [21, 18, 20]], +[20, ["number", -10], 506, 618, [19, null]], +[21, ["setxy2", 0], 394, 534, [23, 17, 19, 22]], +[22, ["vspace", 0], 394, 618, [21, 24]], +[23, "penup", 394, 492, [87, 21]], +[24, "pendown", 394, 660, [22, null]], +[25, "penup", 51, 654, [94, 14]], +[26, "pendown", 51, 780, [14, 40]], +[27, "forward", 1015, 533, [62, 96, 63]], +[28, ["ifelse", [21, 0]], +728, 243, [30, 36, 29, 53, null]], +[29, ["vspace", 0], 746, 309, [28, 55]], +[30, ["vspace", 0], 728, 201, [6, 28]], +[31, "setcolor", 1015, 617, [63, 75, 32]], +[32, "forward", 1015, 659, [31, 106, 60]], +[33, "forward", 1015, 743, [60, 108, 61]], +[34, "setcolor", 1015, 827, [61, 83, 35]], +[35, "forward", 1015, 869, [34, 110, null]], +[36, ["equal2", 0], 784, 209, [28, 118, 37, null]], +[37, ["number", 0], 830, 251, [36, null]], +[38, "seth", 51, 864, [40, 39, 112]], +[39, ["number", 90], 109, 864, [38, null]], +[40, "setpensize", 51, 822, [26, 41, 38]], +[41, ["number", 10], 153, 822, [40, null]], +[42, "setcolor", 1002, 115, [49, 79, 43]], +[43, "forward", 1002, 157, [42, 98, 44]], +[44, "setcolor", 1002, 199, [43, 81, 45]], +[45, "forward", 1002, 241, [44, 100, 46]], +[46, "forward", 1002, 283, [45, 102, 47]], +[47, "setcolor", 1002, 325, [46, 77, 48]], +[48, "forward", 1002, 367, [47, 104, null]], +[49, "hat", 1002, 61, [null, 50, 42]], +[50, ["string", "stripe a"], 1060, 73, [49, null]], +[51, "hat", 1015, 437, [null, 52, 62]], +[52, ["string", "stripe b"], 1073, 449, [51, null]], +[53, "stack", 746, 411, [28, 54, null]], +[54, ["string", "stripe a"], 804, 411, [53, null]], +[55, "stack", 746, 351, [29, 56, null]], +[56, ["string", "stripe b"], 804, 351, [55, null]], +[57, ["number", 1], 516, 366, [59, null]], +[58, ["number", 0.0], 119, 948, [112, null]], +[59, ["minus2", 0], 462, 366, [114, 57, 116]], +[60, "penup", 1015, 701, [32, 33]], +[61, "pendown", 1015, 785, [33, 34]], +[62, "penup", 1015, 491, [51, 27]], +[63, "pendown", 1015, 575, [27, 31]], +[64, ["storein", 0], 51, 234, [0, 65, 66, 67]], +[65, ["string", "color 1"], 119, 234, [64, null]], +[66, ["number", 40], 119, 276, [64, null]], +[67, ["storein", 0], 51, 318, [64, 68, 69, 70]], +[68, ["string", "color 2"], 119, 318, [67, null]], +[69, ["number", 10], 119, 360, [67, null]], +[70, ["storein", 0], 51, 402, [67, 71, 72, 1]], +[71, ["string", "color 3"], 119, 402, [70, null]], +[72, ["number", 90], 119, 444, [70, null]], +[73, "box", 133, 486, [1, 74, null]], +[74, ["string", "color 1"], 188, 486, [73, null]], +[75, "box", 1092, 617, [31, 76, null]], +[76, ["string", "color 2"], 1147, 617, [75, null]], +[77, "box", 1079, 325, [47, 78, null]], +[78, ["string", "color 2"], 1134, 325, [77, null]], +[79, "box", 1079, 115, [42, 80, null]], +[80, ["string", "color 2"], 1134, 115, [79, null]], +[81, "box", 1079, 199, [44, 82, null]], +[82, ["string", "color 3"], 1134, 199, [81, null]], +[83, "box", 1092, 827, [34, 84, null]], +[84, ["string", "color 3"], 1147, 827, [83, null]], +[85, "hat", 710, 105, [null, 86, 6]], +[86, ["string", "action_2"], 768, 117, [85, null]], +[87, "stack", 394, 450, [89, 88, 23]], +[88, ["string", "action_2"], 452, 450, [87, null]], +[89, ["vspace", 0], 394, 408, [114, 87]], +[90, "hat", 376, 186, [null, 91, 3]], +[91, ["string", "action"], 434, 198, [90, null]], +[92, "stack", 51, 990, [112, 93, null]], +[93, ["string", "action"], 109, 990, [92, null]], +[94, ["storein", 0], 51, 570, [1, 95, 11, 25]], +[95, ["string", "box 1"], 119, 570, [94, null]], +[96, "box", 1086, 533, [27, 97, null]], +[97, ["string", "box 1"], 1141, 533, [96, null]], +[98, "box", 1073, 157, [43, 99, null]], +[99, ["string", "box 1"], 1128, 157, [98, null]], +[100, "box", 1073, 241, [45, 101, null]], +[101, ["string", "box 1"], 1128, 241, [100, null]], +[102, "box", 1073, 283, [46, 103, null]], +[103, ["string", "box 1"], 1128, 283, [102, null]], +[104, "box", 1073, 367, [48, 105, null]], +[105, ["string", "box 1"], 1128, 367, [104, null]], +[106, "box", 1086, 659, [32, 107, null]], +[107, ["string", "box 1"], 1141, 659, [106, null]], +[108, "box", 1086, 743, [33, 109, null]], +[109, ["string", "box 1"], 1141, 743, [108, null]], +[110, "box", 1086, 869, [35, 111, null]], +[111, ["string", "box 1"], 1141, 869, [110, null]], +[112, ["storein", 0], 51, 906, [38, 113, 58, 92]], +[113, ["string", "box 2"], 119, 906, [112, null]], +[114, ["storein", 0], 394, 324, [5, 115, 59, 89]], +[115, ["string", "box 2"], 462, 324, [114, null]], +[116, "box", 540, 408, [59, 117, null]], +[117, ["string", "box 2"], 595, 408, [116, null]], +[118, "box", 830, 209, [36, 119, null]], +[119, ["string", "box 2"], 885, 209, [118, null]]] diff --git a/samples/graphics-rainbow.ta b/samples/graphics-rainbow.ta index 72302d6..7eb06b7 100644 --- a/samples/graphics-rainbow.ta +++ b/samples/graphics-rainbow.ta @@ -1 +1,21 @@ -[[0, ["start", 2.0], 175, 178, [null, 1]], [1, "clean", 175, 220, [0, 2]], [2, "setcolor", 175, 254, [1, 3, 4]], [3, ["number", 50], 252, 254, [2, null]], [4, "setpensize", 175, 296, [2, 5, 6]], [5, ["number", 15], 277, 296, [4, null]], [6, "repeat", 175, 338, [4, 7, 8, null]], [7, ["number", 360], 226, 338, [6, null]], [8, "setcolor", 240, 398, [6, 9, 20]], [9, ["product2", 0], 317, 398, [8, 10, 11]], [10, "heading", 371, 398, [9, null]], [11, ["division2", 0], 371, 440, [9, 12, 13]], [12, ["number", 100], 425, 440, [11, null]], [13, ["number", 360], 449, 482, [11, null]], [14, "forward", 240, 554, [20, 15, 16]], [15, ["number", 1000], 311, 554, [14, null]], [16, "back", 240, 596, [14, 17, 18]], [17, ["number", 1000], 298, 596, [16, null]], [18, "right", 240, 638, [16, 19, null]], [19, ["number", 1], 298, 638, [18, null]], [20, ["vspace", 40.0], 240, 440, [8, 14]]] \ No newline at end of file +[[0, ["start", 2.0], 175, 178, [null, 1]], +[1, "clean", 175, 220, [0, 2]], +[2, "setcolor", 175, 254, [1, 3, 4]], +[3, ["number", 50], 252, 254, [2, null]], +[4, "setpensize", 175, 296, [2, 5, 6]], +[5, ["number", 15], 277, 296, [4, null]], +[6, "repeat", 175, 338, [4, 7, 8, null]], +[7, ["number", 360], 226, 338, [6, null]], +[8, "setcolor", 240, 398, [6, 9, 20]], +[9, ["product2", 0], 317, 398, [8, 10, 11]], +[10, "heading", 371, 398, [9, null]], +[11, ["division2", 0], 371, 440, [9, 12, 13]], +[12, ["number", 100], 425, 440, [11, null]], +[13, ["number", 360], 449, 482, [11, null]], +[14, "forward", 240, 554, [20, 15, 16]], +[15, ["number", 1000], 311, 554, [14, null]], +[16, "back", 240, 596, [14, 17, 18]], +[17, ["number", 1000], 298, 596, [16, null]], +[18, "right", 240, 638, [16, 19, null]], +[19, ["number", 1], 298, 638, [18, null]], +[20, ["vspace", 40.0], 240, 440, [8, 14]]] \ No newline at end of file diff --git a/samples/graphics-redwisp.ta b/samples/graphics-redwisp.ta index 52bf295..f0eb998 100644 --- a/samples/graphics-redwisp.ta +++ b/samples/graphics-redwisp.ta @@ -1 +1,42 @@ -[[0, "setpensize", 169, 251, [2, 1, 3]], [1, ["number", 15], 271, 251, [0, null]], [2, "clean", 169, 217, [8, 0]], [3, "repeat", 169, 293, [0, 4, 5, null]], [4, ["number", 360], 220, 293, [3, null]], [5, "storeinbox1", 234, 353, [3, 9, 36]], [6, "setshade", 234, 429, [36, 12, 7]], [7, "stack1", 234, 471, [6, null]], [8, ["start", 2.0], 169, 175, [null, 2]], [9, ["product2", 0], 352, 353, [5, 10, 11]], [10, "heading", 406, 353, [9, null]], [11, ["number", 600], 406, 395, [9, null]], [12, ["division2", 0], 319, 429, [6, 13, 14]], [13, "box1", 373, 429, [12, null]], [14, ["number", 360], 397, 471, [12, null]], [15, "hat1", 555, 175, [null, 16]], [16, "repeat", 555, 217, [15, 17, 18, 24]], [17, ["number", 4], 606, 217, [16, null]], [18, ["arc", 0], 620, 277, [16, 19, 20, 21]], [19, ["number", 180], 678, 277, [18, null]], [20, ["number", 75], 678, 319, [18, null]], [21, ["arc", 0], 620, 361, [18, 22, 23, null]], [22, ["number", -180], 678, 361, [21, null]], [23, ["number", 75], 678, 403, [21, null]], [24, ["vspace", 60.0], 555, 295, [16, 25]], [25, "repeat", 555, 449, [24, 26, 27, 33]], [26, ["number", 4], 606, 449, [25, null]], [27, ["arc", 0], 620, 509, [25, 28, 29, 30]], [28, ["number", -180], 678, 509, [27, null]], [29, ["number", -75], 678, 551, [27, null]], [30, ["arc", 0], 620, 593, [27, 31, 32, null]], [31, ["number", 180], 678, 593, [30, null]], [32, ["number", -75], 678, 635, [30, null]], [33, ["vspace", 60.0], 555, 527, [25, 34]], [34, "right", 555, 681, [33, 35, null]], [35, ["number", 1], 613, 681, [34, null]], [36, ["vspace", 0], 234, 395, [5, 6]]] \ No newline at end of file +[[0, "setpensize", 140, 224, [2, 1, 3]], +[1, ["number", 15], 242, 224, [0, null]], +[2, "clean", 140, 182, [6, 0]], +[3, "repeat", 140, 266, [0, 4, 37, null]], +[4, ["number", 360], 191, 266, [3, null]], +[5, "setshade", 205, 452, [32, 10, 41]], +[6, ["start", 2.0], 140, 140, [null, 2]], +[7, ["product2", 0], 273, 368, [37, 8, 9]], +[8, "heading", 327, 368, [7, null]], +[9, ["number", 600], 327, 410, [7, null]], +[10, ["division2", 0], 290, 452, [5, 39, 11]], +[11, ["number", 360], 368, 494, [10, null]], +[12, "repeat", 560, 190, [33, 13, 14, 20]], +[13, ["number", 4], 611, 190, [12, null]], +[14, ["arc", 0], 625, 250, [12, 15, 16, 17]], +[15, ["number", 180], 683, 250, [14, null]], +[16, ["number", 75], 683, 292, [14, null]], +[17, ["arc", 0], 625, 334, [14, 18, 19, null]], +[18, ["number", -180], 683, 334, [17, null]], +[19, ["number", 75], 683, 376, [17, null]], +[20, ["vspace", 60.0], 560, 268, [12, 21]], +[21, "repeat", 560, 430, [20, 22, 23, 29]], +[22, ["number", 4], 611, 430, [21, null]], +[23, ["arc", 0], 625, 490, [21, 24, 25, 26]], +[24, ["number", -180], 683, 490, [23, null]], +[25, ["number", -75], 683, 532, [23, null]], +[26, ["arc", 0], 625, 574, [23, 27, 28, null]], +[27, ["number", 180], 683, 574, [26, null]], +[28, ["number", -75], 683, 616, [26, null]], +[29, ["vspace", 60.0], 560, 508, [21, 30]], +[30, "right", 560, 670, [29, 31, null]], +[31, ["number", 1], 618, 670, [30, null]], +[32, ["vspace", 0], 205, 410, [37, 5]], +[33, "hat", 560, 140, [null, 34, 12]], +[34, ["string", "action"], 618, 148, [33, null]], +[35, "stack", 205, 536, [41, 36, null]], +[36, ["string", "action"], 263, 536, [35, null]], +[37, ["storein", 0], 205, 326, [3, 38, 7, 32]], +[38, ["string", "my box"], 273, 326, [37, null]], +[39, "box", 344, 452, [10, 40, null]], +[40, ["string", "my box"], 399, 452, [39, null]], +[41, ["vspace", 0], 205, 494, [5, 35]]] diff --git a/samples/graphics-reflections.ta b/samples/graphics-reflections.ta index 1286f8b..124727d 100644 --- a/samples/graphics-reflections.ta +++ b/samples/graphics-reflections.ta @@ -1 +1,46 @@ -[[0, "clean", 176, 221, [16, 1]], [1, "setpensize", 176, 255, [0, 2, 3]], [2, ["number", 15], 278, 255, [1, null]], [3, "storeinbox1", 176, 297, [1, 4, 5]], [4, ["number", 6200], 294, 297, [3, null]], [5, "repeat", 176, 339, [3, 6, 7, null]], [6, ["number", 6200], 227, 339, [5, null]], [7, "storeinbox2", 241, 399, [5, 23, 32]], [8, "setshade", 241, 475, [32, 17, 33]], [9, "forward", 241, 551, [33, 26, 34]], [10, "back", 241, 627, [34, 29, 35]], [11, "right", 241, 703, [35, 12, 13]], [12, ["number", 1], 299, 703, [11, null]], [13, "storeinbox1", 241, 745, [11, 20, 36]], [14, "setcolor", 241, 821, [36, 15, null]], [15, "box1", 318, 821, [14, null]], [16, "start", 176, 179, [null, 0]], [17, "minus2", 326, 475, [8, 18, 19]], [18, ["number", 100], 380, 475, [17, null]], [19, "box2", 404, 521, [17, null]], [20, "minus2", 359, 745, [13, 21, 22]], [21, "box1", 413, 745, [20, null]], [22, ["number", 1], 437, 791, [20, null]], [23, "division2", 359, 399, [7, 24, 25]], [24, "box1", 413, 399, [23, null]], [25, ["number", 50], 437, 445, [23, null]], [26, "division2", 312, 551, [9, 27, 28]], [27, "box1", 366, 551, [26, null]], [28, ["number", 8], 390, 597, [26, null]], [29, "division2", 299, 627, [10, 30, 31]], [30, "box1", 353, 627, [29, null]], [31, ["number", 8], 377, 673, [29, null]], [32, ["vspace", 0], 241, 441, [7, 8]], [33, ["vspace", 0], 241, 517, [8, 9]], [34, ["vspace", 0], 241, 593, [9, 10]], [35, ["vspace", 0], 241, 669, [10, 11]], [36, ["vspace", 0], 241, 787, [13, 14]]] \ No newline at end of file +[[0, "clean", 176, 221, [12, 1]], +[1, "setpensize", 176, 263, [0, 2, 28]], +[2, ["number", 15], 278, 263, [1, null]], +[3, ["number", 6200.0], 244, 347, [28, null]], +[4, "repeat", 176, 389, [28, 5, 30, null]], +[5, ["number", 6200], 227, 389, [4, null]], +[6, "setshade", 241, 575, [23, 13, 24]], +[7, "forward", 241, 659, [24, 19, 25]], +[8, "back", 241, 743, [25, 21, 26]], +[9, "right", 241, 827, [26, 10, 40]], +[10, ["number", 1], 299, 827, [9, null]], +[11, "setcolor", 241, 995, [27, 44, null]], +[12, ["start", 2.0], 176, 179, [null, 0]], +[13, ["minus2", 0], 326, 575, [6, 14, 34]], +[14, ["number", 100], 380, 575, [13, null]], +[15, ["minus2", 0], 309, 911, [40, 42, 16]], +[16, ["number", 1], 387, 953, [15, null]], +[17, ["division2", 0], 309, 491, [30, 32, 18]], +[18, ["number", 50], 387, 533, [17, null]], +[19, ["division2", 0], 312, 659, [7, 36, 20]], +[20, ["number", 8], 390, 701, [19, null]], +[21, ["division2", 0], 299, 743, [8, 38, 22]], +[22, ["number", 8], 377, 785, [21, null]], +[23, ["vspace", 0], 241, 533, [30, 6]], +[24, ["vspace", 0], 241, 617, [6, 7]], +[25, ["vspace", 0], 241, 701, [7, 8]], +[26, ["vspace", 0], 241, 785, [8, 9]], +[27, ["vspace", 0], 241, 953, [40, 11]], +[28, ["storein", 0], 176, 305, [1, 29, 3, 4]], +[29, ["string", "my box 1"], 244, 305, [28, null]], +[30, ["storein", 0], 241, 449, [4, 31, 17, 23]], +[31, ["string", "my box 2"], 309, 449, [30, null]], +[32, "box", 363, 491, [17, 33, null]], +[33, ["string", "my box 1"], 418, 491, [32, null]], +[34, "box", 404, 617, [13, 35, null]], +[35, ["string", "my box 2"], 459, 617, [34, null]], +[36, "box", 366, 659, [19, 37, null]], +[37, ["string", "my box 1"], 421, 659, [36, null]], +[38, "box", 353, 743, [21, 39, null]], +[39, ["string", "my box 1"], 408, 743, [38, null]], +[40, ["storein", 0], 241, 869, [9, 41, 15, 27]], +[41, ["string", "my box 1"], 309, 869, [40, null]], +[42, "box", 363, 911, [15, 43, null]], +[43, ["string", "my box 1"], 418, 911, [42, null]], +[44, "box", 318, 995, [11, 45, null]], +[45, ["string", "my box 1"], 373, 995, [44, null]]] diff --git a/samples/graphics-shades.ta b/samples/graphics-shades.ta index 5d22692..68732fc 100644 --- a/samples/graphics-shades.ta +++ b/samples/graphics-shades.ta @@ -1 +1,46 @@ -[[0, "clean", 176, 221, [16, 1]], [1, "setpensize", 176, 255, [0, 2, 3]], [2, ["number", 15], 278, 255, [1, null]], [3, "storeinbox1", 176, 297, [1, 4, 5]], [4, ["number", 6200], 294, 297, [3, null]], [5, "repeat", 176, 339, [3, 6, 7, null]], [6, ["number", 6200], 227, 339, [5, null]], [7, "storeinbox2", 241, 399, [5, 23, 32]], [8, "setshade", 241, 475, [32, 17, 33]], [9, "forward", 241, 551, [33, 26, 34]], [10, "back", 241, 627, [34, 29, 35]], [11, "right", 241, 703, [35, 12, 13]], [12, ["number", 1], 299, 703, [11, null]], [13, "storeinbox1", 241, 745, [11, 20, 36]], [14, "setcolor", 241, 821, [36, 15, null]], [15, "box1", 318, 821, [14, null]], [16, ["start", 2.0], 176, 179, [null, 0]], [17, ["minus2", 0], 326, 475, [8, 18, 19]], [18, ["number", 100], 380, 475, [17, null]], [19, "box2", 404, 517, [17, null]], [20, ["minus2", 0], 359, 745, [13, 21, 22]], [21, "box1", 413, 745, [20, null]], [22, ["number", 1], 437, 787, [20, null]], [23, ["division2", 0], 359, 399, [7, 24, 25]], [24, "box1", 413, 399, [23, null]], [25, ["number", 50], 437, 441, [23, null]], [26, ["division2", 0], 312, 551, [9, 27, 28]], [27, "box1", 366, 551, [26, null]], [28, ["number", 8], 390, 593, [26, null]], [29, ["division2", 0], 299, 627, [10, 30, 31]], [30, "box1", 353, 627, [29, null]], [31, ["number", 8], 377, 669, [29, null]], [32, ["vspace", 0], 241, 441, [7, 8]], [33, ["vspace", 0], 241, 517, [8, 9]], [34, ["vspace", 0], 241, 593, [9, 10]], [35, ["vspace", 0], 241, 669, [10, 11]], [36, ["vspace", 0], 241, 787, [13, 14]]] \ No newline at end of file +[[0, "clean", 176, 221, [12, 1]], +[1, "setpensize", 176, 263, [0, 2, 28]], +[2, ["number", 15], 277, 263, [1, null]], +[3, ["number", 6200.0], 271, 347, [28, null]], +[4, "repeat", 176, 389, [28, 5, 40, null]], +[5, ["number", 6200], 227, 389, [4, null]], +[6, "setshade", 241, 575, [23, 13, 24]], +[7, "forward", 241, 659, [24, 19, 25]], +[8, "back", 241, 743, [25, 21, 26]], +[9, "right", 241, 827, [26, 10, 42]], +[10, ["number", 1], 313, 827, [9, null]], +[11, "setcolor", 241, 995, [27, 32, null]], +[12, ["start", 2.0], 176, 179, [null, 0]], +[13, ["minus2", 0], 319, 575, [6, 14, 44]], +[14, ["number", 100], 373, 575, [13, null]], +[15, ["minus2", 0], 336, 911, [42, 34, 16]], +[16, ["number", 1], 414, 953, [15, null]], +[17, ["division2", 0], 336, 491, [40, 38, 18]], +[18, ["number", 50], 414, 533, [17, null]], +[19, ["division2", 0], 315, 659, [7, 36, 20]], +[20, ["number", 8], 393, 701, [19, null]], +[21, ["division2", 0], 299, 743, [8, 30, 22]], +[22, ["number", 8], 377, 785, [21, null]], +[23, ["vspace", 0], 241, 533, [40, 6]], +[24, ["vspace", 0], 241, 617, [6, 7]], +[25, ["vspace", 0], 241, 701, [7, 8]], +[26, ["vspace", 0], 241, 785, [8, 9]], +[27, ["vspace", 0], 241, 953, [42, 11]], +[28, ["storein", 0], 176, 305, [1, 29, 3, 4]], +[29, ["string", "my box 1"], 271, 305, [28, null]], +[30, "box", 353, 743, [21, 31, null]], +[31, ["string", "my box 1"], 408, 743, [30, null]], +[32, "box", 322, 995, [11, 33, null]], +[33, ["string", "my box 1"], 377, 995, [32, null]], +[34, "box", 390, 911, [15, 35, null]], +[35, ["string", "my box 1"], 445, 911, [34, null]], +[36, "box", 369, 659, [19, 37, null]], +[37, ["string", "my box 1"], 424, 659, [36, null]], +[38, "box", 390, 491, [17, 39, null]], +[39, ["string", "my box 1"], 445, 491, [38, null]], +[40, ["storein", 0], 241, 449, [4, 41, 17, 23]], +[41, ["string", "my box 2"], 336, 449, [40, null]], +[42, ["storein", 0], 241, 869, [9, 43, 15, 27]], +[43, ["string", "my box 1"], 336, 869, [42, null]], +[44, "box", 397, 617, [13, 45, null]], +[45, ["string", "my box 2"], 452, 617, [44, null]]] diff --git a/samples/graphics-smoothcandy.ta b/samples/graphics-smoothcandy.ta index 745e072..9f45a38 100644 --- a/samples/graphics-smoothcandy.ta +++ b/samples/graphics-smoothcandy.ta @@ -1 +1,32 @@ -[[0, ["start", 2.0], 236, 175, [null, 1]], [1, "clean", 236, 217, [0, 2]], [2, "repeat", 236, 251, [1, 3, 4, null]], [3, ["number", 350], 287, 251, [2, null]], [4, "setpensize", 301, 311, [2, 23, 26]], [5, "forward", 301, 387, [26, 6, 7]], [6, ["number", 1000], 372, 387, [5, null]], [7, "setcolor", 301, 429, [5, 20, 27]], [8, "storeinbox1", 301, 505, [27, 17, 28]], [9, "setshade", 301, 581, [28, 14, 29]], [10, "back", 301, 657, [29, 11, 12]], [11, ["number", 1000], 359, 657, [10, null]], [12, "left", 301, 699, [10, 13, null]], [13, ["number", 1], 359, 699, [12, null]], [14, ["minus2", 0], 386, 581, [9, 15, 16]], [15, ["number", 100], 440, 581, [14, null]], [16, "box1", 464, 623, [14, null]], [17, ["division2", 0], 419, 505, [8, 18, 19]], [18, "heading", 473, 505, [17, null]], [19, ["number", 2], 497, 547, [17, null]], [20, ["division2", 0], 378, 429, [7, 21, 22]], [21, "heading", 432, 429, [20, null]], [22, ["number", 3], 456, 471, [20, null]], [23, ["plus2", 0], 403, 311, [4, 24, 25]], [24, "heading", 457, 311, [23, null]], [25, ["number", 4], 457, 353, [23, null]], [26, ["vspace", 0], 301, 353, [4, 5]], [27, ["vspace", 0], 301, 471, [7, 8]], [28, ["vspace", 0], 301, 547, [8, 9]], [29, ["vspace", 0], 301, 623, [9, 10]]] \ No newline at end of file +[[0, ["start", 2.0], 236, 175, [null, 1]], +[1, "clean", 236, 217, [0, 2]], +[2, "repeat", 236, 259, [1, 3, 4, null]], +[3, ["number", 350], 287, 259, [2, null]], +[4, "setpensize", 301, 319, [2, 21, 24]], +[5, "forward", 301, 403, [24, 6, 7]], +[6, ["number", 1000], 372, 403, [5, null]], +[7, "setcolor", 301, 445, [5, 18, 25]], +[8, "setshade", 301, 655, [26, 13, 27]], +[9, "back", 301, 739, [27, 10, 11]], +[10, ["number", 1000], 359, 739, [9, null]], +[11, "left", 301, 781, [9, 12, null]], +[12, ["number", 1], 359, 781, [11, null]], +[13, ["minus2", 0], 386, 655, [8, 14, 30]], +[14, ["number", 100], 440, 655, [13, null]], +[15, ["division2", 0], 369, 571, [28, 16, 17]], +[16, "heading", 423, 571, [15, null]], +[17, ["number", 2], 447, 613, [15, null]], +[18, ["division2", 0], 378, 445, [7, 19, 20]], +[19, "heading", 432, 445, [18, null]], +[20, ["number", 3], 456, 487, [18, null]], +[21, ["plus2", 0], 403, 319, [4, 22, 23]], +[22, "heading", 457, 319, [21, null]], +[23, ["number", 4], 457, 361, [21, null]], +[24, ["vspace", 0], 301, 361, [4, 5]], +[25, ["vspace", 0], 301, 487, [7, 28]], +[26, ["vspace", 0], 301, 613, [28, 8]], +[27, ["vspace", 0], 301, 697, [8, 9]], +[28, ["storein", 0], 301, 529, [25, 29, 15, 26]], +[29, ["string", "my box"], 369, 529, [28, null]], +[30, "box", 464, 697, [13, 31, null]], +[31, ["string", "my box"], 519, 697, [30, null]]] diff --git a/samples/graphics-snowflake.ta b/samples/graphics-snowflake.ta index c47294a..90fa72c 100644 --- a/samples/graphics-snowflake.ta +++ b/samples/graphics-snowflake.ta @@ -1 +1,70 @@ -[[0, "hat1", 553, 173, [null, 1]], [1, "ifelse", 553, 215, [0, 2, 4, 9, null]], [2, ["greater2", 0], 619, 181, [1, 3, 21, null]], [3, "box1", 665, 181, [2, null]], [4, ["vspace", 0], 633, 283, [1, 5]], [5, "storeinbox1", 633, 325, [4, 38, 6]], [6, "stack1", 633, 367, [5, 7]], [7, "left", 633, 401, [6, 8, 11]], [8, ["number", 60], 691, 401, [7, null]], [9, "forward", 685, 283, [1, 10, null]], [10, "box1", 756, 283, [9, null]], [11, "setcolor", 633, 443, [7, 41, 12]], [12, "stack1", 633, 485, [11, 13]], [13, "right", 633, 519, [12, 14, 15]], [14, ["number", 120], 691, 519, [13, null]], [15, "stack1", 633, 561, [13, 16]], [16, "setcolor", 633, 595, [15, 44, 50]], [17, "left", 633, 679, [50, 18, 19]], [18, ["number", 60], 691, 679, [17, null]], [19, "stack1", 633, 721, [17, 20]], [20, "storeinbox1", 633, 755, [19, 47, null]], [21, ["number", 3], 665, 223, [2, null]], [22, "clean", 309, 217, [37, 23]], [23, "setpensize", 309, 251, [22, 24, 51]], [24, ["number", 3], 411, 251, [23, null]], [25, ["setxy2", 0], 309, 327, [51, 26, 27, 52]], [26, ["number", 364], 367, 327, [25, null]], [27, ["number", -210], 367, 369, [25, null]], [28, "left", 309, 445, [52, 29, 30]], [29, ["number", 90], 367, 445, [28, null]], [30, "storeinbox1", 309, 487, [28, 31, 32]], [31, ["number", 729], 427, 487, [30, null]], [32, "repeat", 309, 529, [30, 33, 34, null]], [33, ["number", 3], 360, 529, [32, null]], [34, "stack1", 374, 589, [32, 35]], [35, "right", 374, 623, [34, 36, null]], [36, ["number", 120], 432, 623, [35, null]], [37, ["start", 2.0], 309, 175, [null, 22]], [38, ["division2", 0], 751, 325, [5, 39, 40]], [39, "box1", 805, 325, [38, null]], [40, ["number", 3], 829, 367, [38, null]], [41, ["plus2", 0], 710, 443, [11, 42, 43]], [42, "color", 764, 443, [41, null]], [43, ["number", 7], 764, 485, [41, null]], [44, ["minus2", 0], 710, 595, [16, 45, 46]], [45, "color", 764, 595, [44, null]], [46, ["number", 7], 788, 637, [44, null]], [47, ["product2", 0], 751, 755, [20, 48, 49]], [48, "box1", 805, 755, [47, null]], [49, ["number", 3], 805, 797, [47, null]], [50, ["vspace", 0], 633, 637, [16, 17]], [51, "penup", 309, 293, [23, 25]], [52, "pendown", 309, 411, [25, 28]]] \ No newline at end of file +[[0, ["ifelse", [336, 0]], +666, 244, [2, 1, 57, 5, null]], +[1, ["greater2", 0], 722, 210, [0, 61, 12, null]], +[2, ["vspace", 0], 666, 202, [40, 0]], +[3, "left", 684, 478, [48, 4, 6]], +[4, ["number", 60], 742, 478, [3, null]], +[5, "forward", 684, 1042, [0, 65, null]], +[6, "setcolor", 684, 520, [3, 29, 51]], +[7, "right", 684, 646, [44, 8, 46]], +[8, ["number", 120], 742, 646, [7, null]], +[9, "setcolor", 684, 730, [46, 32, 37]], +[10, "left", 684, 814, [37, 11, 53]], +[11, ["number", 60], 742, 814, [10, null]], +[12, ["number", 3], 792, 252, [1, null]], +[13, "clean", 309, 221, [26, 14]], +[14, "setpensize", 309, 263, [13, 15, 38]], +[15, ["number", 3], 411, 263, [14, null]], +[16, ["setxy2", 0], 309, 347, [38, 17, 18, 39]], +[17, ["number", 364], 367, 347, [16, null]], +[18, ["number", -210], 367, 389, [16, null]], +[19, "left", 309, 473, [39, 20, 55]], +[20, ["number", 90], 367, 473, [19, null]], +[21, ["number", 729.0], 377, 557, [55, null]], +[22, ["repeat", 21], 309, 599, [55, 23, 42, null]], +[23, ["number", 3], 368, 599, [22, null]], +[24, "right", 327, 683, [42, 25, null]], +[25, ["number", 120], 385, 683, [24, null]], +[26, ["start", 2.0], 309, 175, [null, 13]], +[27, ["division2", 0], 752, 352, [57, 63, 28]], +[28, ["number", 3], 830, 394, [27, null]], +[29, ["plus2", 0], 761, 520, [6, 30, 31]], +[30, "color", 815, 520, [29, null]], +[31, ["number", 7], 815, 562, [29, null]], +[32, ["minus2", 0], 761, 730, [9, 33, 34]], +[33, "color", 815, 730, [32, null]], +[34, ["number", 7], 839, 772, [32, null]], +[35, ["product2", 0], 752, 940, [59, 67, 36]], +[36, ["number", 3], 806, 982, [35, null]], +[37, ["vspace", 0], 684, 772, [9, 10]], +[38, "penup", 309, 305, [14, 16]], +[39, "pendown", 309, 431, [16, 19]], +[40, "hat", 666, 148, [null, 41, 2]], +[41, ["string", "action"], 724, 160, [40, null]], +[42, "stack", 327, 641, [22, 43, 24]], +[43, ["string", "action"], 385, 641, [42, null]], +[44, "stack", 684, 604, [51, 45, 7]], +[45, ["string", "action"], 742, 604, [44, null]], +[46, "stack", 684, 688, [7, 47, 9]], +[47, ["string", "action"], 742, 688, [46, null]], +[48, "stack", 684, 436, [50, 49, 3]], +[49, ["string", "action"], 742, 436, [48, null]], +[50, ["vspace", 0], 684, 394, [57, 48]], +[51, ["vspace", 0], 684, 562, [6, 44]], +[52, ["vspace", 0], 684, 982, [59, null]], +[53, "stack", 684, 856, [10, 54, 59]], +[54, ["string", "action"], 742, 856, [53, null]], +[55, ["storein", 0], 309, 515, [19, 56, 21, 22]], +[56, ["string", "my box"], 377, 515, [55, null]], +[57, ["storein", 0], 684, 310, [0, 58, 27, 50]], +[58, ["string", "my box"], 752, 310, [57, null]], +[59, ["storein", 0], 684, 898, [53, 60, 35, 52]], +[60, ["string", "my box"], 752, 898, [59, null]], +[61, "box", 768, 210, [1, 62, null]], +[62, ["string", "my box"], 823, 210, [61, null]], +[63, "box", 806, 352, [27, 64, null]], +[64, ["string", "my box"], 861, 352, [63, null]], +[65, "box", 755, 1042, [5, 66, null]], +[66, ["string", "my box"], 810, 1042, [65, null]], +[67, "box", 806, 940, [35, 68, null]], +[68, ["string", "my box"], 861, 940, [67, null]]] diff --git a/samples/graphics-sunrise.ta b/samples/graphics-sunrise.ta index 6b9083e..5707988 100644 --- a/samples/graphics-sunrise.ta +++ b/samples/graphics-sunrise.ta @@ -1 +1,73 @@ -[[0, ["fillscreen", 0], 214, 217, [17, 1, 2, 3]], [1, ["number", 0], 296, 217, [0, null]], [2, ["number", 0], 296, 259, [0, null]], [3, "setpensize", 214, 301, [0, 4, 5]], [4, ["number", 6], 316, 301, [3, null]], [5, "repeat", 214, 343, [3, 6, 7, null]], [6, ["number", 300], 265, 343, [5, null]], [7, "storeinbox1", 279, 403, [5, 8, 9]], [8, ["number", 15], 397, 403, [7, null]], [9, "storeinbox2", 279, 445, [7, 10, 11]], [10, ["number", 20], 397, 445, [9, null]], [11, "stack1", 279, 487, [9, 12]], [12, "storeinbox1", 279, 521, [11, 13, 14]], [13, ["number", 0], 397, 521, [12, null]], [14, "storeinbox2", 279, 563, [12, 15, 16]], [15, ["number", 10], 397, 563, [14, null]], [16, "stack1", 279, 605, [14, null]], [17, ["start", 2.0], 214, 175, [null, 0]], [18, "hat1", 557, 175, [null, 58]], [19, ["setxy2", 0], 557, 251, [58, 20, 21, 59]], [20, ["number", 0], 615, 251, [19, null]], [21, ["number", 0], 615, 293, [19, null]], [22, "seth", 557, 369, [59, 23, 57]], [23, ["random", 0], 656, 369, [22, 24, 25, null]], [24, ["number", 0], 742, 369, [23, null]], [25, ["number", 360], 742, 411, [23, null]], [26, "repeat", 557, 453, [57, 27, 28, null]], [27, ["number", 20], 608, 453, [26, null]], [28, "setcolor", 622, 513, [26, 29, 52]], [29, ["random", 0], 699, 513, [28, 30, 31, null]], [30, "box1", 785, 513, [29, null]], [31, "box2", 785, 555, [29, null]], [32, "forward", 622, 597, [52, 33, 53]], [33, ["random", 0], 693, 597, [32, 34, 35, null]], [34, ["number", 10], 779, 597, [33, null]], [35, ["number", 30], 779, 639, [33, null]], [36, "right", 622, 681, [53, 37, 54]], [37, ["random", 0], 680, 681, [36, 38, 39, null]], [38, ["number", 30], 766, 681, [37, null]], [39, ["number", 40], 766, 723, [37, null]], [40, "setcolor", 622, 765, [54, 41, 55]], [41, ["random", 0], 699, 765, [40, 42, 43, null]], [42, "box1", 785, 765, [41, null]], [43, "box2", 785, 807, [41, null]], [44, "forward", 622, 849, [55, 45, 56]], [45, ["random", 0], 693, 849, [44, 46, 47, null]], [46, ["number", 10], 779, 849, [45, null]], [47, ["number", 30], 779, 891, [45, null]], [48, "left", 622, 933, [56, 49, null]], [49, ["random", 0], 680, 933, [48, 50, 51, null]], [50, ["number", 30], 766, 933, [49, null]], [51, ["number", 40], 766, 975, [49, null]], [52, ["vspace", 0], 622, 555, [28, 32]], [53, ["vspace", 0], 622, 639, [32, 36]], [54, ["vspace", 0], 622, 723, [36, 40]], [55, ["vspace", 0], 622, 807, [40, 44]], [56, ["vspace", 0], 622, 891, [44, 48]], [57, ["vspace", 0], 557, 411, [22, 26]], [58, "penup", 557, 217, [18, 19]], [59, "pendown", 557, 335, [19, 22]]] \ No newline at end of file +[[0, ["fillscreen", 0], 214, 217, [11, 1, 2, 3]], +[1, ["number", 0], 344, 217, [0, null]], +[2, ["number", 0], 344, 259, [0, null]], +[3, "setpensize", 214, 301, [0, 4, 5]], +[4, ["number", 6], 315, 301, [3, null]], +[5, "repeat", 214, 343, [3, 6, 49, null]], +[6, ["number", 300], 265, 343, [5, null]], +[7, ["number", 15.0], 374, 445, [49, null]], +[8, ["number", 20.0], 374, 529, [51, null]], +[9, ["number", 0.0], 374, 655, [53, null]], +[10, ["number", 10.0], 374, 739, [55, null]], +[11, ["start", 2.0], 214, 175, [null, 0]], +[12, ["setxy2", 0], 555, 262, [47, 13, 14, 48]], +[13, ["number", 0], 616, 262, [12, null]], +[14, ["number", 0], 616, 304, [12, null]], +[15, "seth", 555, 388, [48, 16, 46]], +[16, ["random", 0], 649, 388, [15, 17, 18, null]], +[17, ["number", 0], 708, 388, [16, null]], +[18, ["number", 360], 708, 430, [16, null]], +[19, "repeat", 555, 472, [46, 20, 21, null]], +[20, ["number", 20], 606, 472, [19, null]], +[21, "setcolor", 620, 532, [19, 22, 41]], +[22, ["random", 0], 701, 532, [21, 61, 63, null]], +[23, "forward", 620, 616, [41, 24, 42]], +[24, ["random", 0], 694, 616, [23, 25, 26, null]], +[25, ["number", 10], 753, 616, [24, null]], +[26, ["number", 30], 753, 658, [24, null]], +[27, "right", 620, 700, [42, 28, 43]], +[28, ["random", 0], 692, 700, [27, 29, 30, null]], +[29, ["number", 30], 751, 700, [28, null]], +[30, ["number", 40], 751, 742, [28, null]], +[31, "setcolor", 620, 784, [43, 32, 44]], +[32, ["random", 0], 701, 784, [31, 59, 57, null]], +[33, "forward", 620, 868, [44, 34, 45]], +[34, ["random", 0], 694, 868, [33, 35, 36, null]], +[35, ["number", 10], 753, 868, [34, null]], +[36, ["number", 30], 753, 910, [34, null]], +[37, "left", 620, 952, [45, 38, null]], +[38, ["random", 0], 699, 952, [37, 39, 40, null]], +[39, ["number", 30], 758, 952, [38, null]], +[40, ["number", 40], 758, 994, [38, null]], +[41, ["vspace", 0], 620, 574, [21, 23]], +[42, ["vspace", 0], 620, 658, [23, 27]], +[43, ["vspace", 0], 620, 742, [27, 31]], +[44, ["vspace", 0], 620, 826, [31, 33]], +[45, ["vspace", 0], 620, 910, [33, 37]], +[46, ["vspace", 0], 555, 430, [15, 19]], +[47, "penup", 555, 220, [65, 12]], +[48, "pendown", 555, 346, [12, 15]], +[49, ["storein", 0], 279, 403, [5, 50, 7, 51]], +[50, ["string", "my box 1"], 374, 403, [49, null]], +[51, ["storein", 0], 279, 487, [49, 52, 8, 71]], +[52, ["string", "my box 2"], 374, 487, [51, null]], +[53, ["storein", 0], 279, 613, [71, 54, 9, 55]], +[54, ["string", "my box 1"], 374, 613, [53, null]], +[55, ["storein", 0], 279, 697, [53, 56, 10, 67]], +[56, ["string", "my box 2"], 374, 697, [55, null]], +[57, "box", 760, 826, [32, 58, null]], +[58, ["string", "my box 2"], 815, 826, [57, null]], +[59, "box", 760, 784, [32, 60, null]], +[60, ["string", "my box 1"], 815, 784, [59, null]], +[61, "box", 760, 532, [22, 62, null]], +[62, ["string", "my box 1"], 815, 532, [61, null]], +[63, "box", 760, 574, [22, 64, null]], +[64, ["string", "my box 2"], 815, 574, [63, null]], +[65, "hat", 555, 170, [null, 66, 47]], +[66, ["string", "sunrise"], 614, 178, [65, null]], +[67, "stack", 279, 781, [55, 68, null]], +[68, ["string", "sunrise"], 338, 781, [67, null]], +[69, "stack", 303, 728, [null, 70, null]], +[70, ["string", "sunrise"], 362, 728, [69, null]], +[71, "stack", 279, 571, [51, 72, 53]], +[72, ["string", "sunrise"], 338, 571, [71, null]]] diff --git a/samples/graphics-tree.ta b/samples/graphics-tree.ta index 58da914..5993475 100644 --- a/samples/graphics-tree.ta +++ b/samples/graphics-tree.ta @@ -1 +1,94 @@ -[[0, "hat1", 840, 58, [null, 1]], [1, "pendown", 840, 100, [0, 68]], [2, "if", 840, 176, [68, 3, 70, 71]], [3, ["greater2", 0], 878, 142, [2, 4, 5, null]], [4, "box1", 924, 142, [3, null]], [5, ["number", 10], 924, 184, [3, null]], [6, "storeinbox2", 840, 304, [71, 7, 72]], [7, ["random", 0], 958, 304, [6, 8, 45, null]], [8, ["number", 0], 1044, 304, [7, null]], [9, "if", 840, 428, [72, 10, 12, null]], [10, ["equal2", 0], 878, 394, [9, 11, 44, null]], [11, "box2", 924, 394, [10, null]], [12, "penup", 892, 496, [9, 13]], [13, "forward", 892, 530, [12, 65, 73]], [14, "setcolor", 892, 614, [73, 15, 16]], [15, ["number", 40], 969, 614, [14, null]], [16, "setpensize", 892, 656, [14, 17, 18]], [17, ["number", 20], 994, 656, [16, null]], [18, "forward", 892, 698, [16, 19, 20]], [19, ["number", 1], 963, 698, [18, null]], [20, "pendown", 892, 740, [18, 21]], [21, "back", 892, 774, [20, 22, 23]], [22, ["number", 1], 950, 774, [21, null]], [23, "setcolor", 892, 816, [21, 24, 25]], [24, ["number", 10], 969, 816, [23, null]], [25, "setpensize", 892, 858, [23, 26, 27]], [26, ["number", 5], 994, 858, [25, null]], [27, "penup", 892, 900, [25, 28]], [28, "back", 892, 934, [27, 62, null]], [29, "forward", 485, 217, [69, 30, 31]], [30, "box1", 556, 217, [29, null]], [31, "storeinbox1", 485, 259, [29, 59, 74]], [32, "right", 485, 343, [74, 33, 34]], [33, ["number", 30], 543, 343, [32, null]], [34, "stack1", 485, 385, [32, 35]], [35, "left", 485, 419, [34, 36, 37]], [36, ["number", 60], 543, 419, [35, null]], [37, "stack1", 485, 461, [35, 38]], [38, "right", 485, 495, [37, 39, 40]], [39, ["number", 30], 543, 495, [38, null]], [40, "storeinbox1", 485, 537, [38, 56, 41]], [41, "penup", 485, 579, [40, 42]], [42, "back", 485, 613, [41, 43, null]], [43, "box1", 543, 613, [42, null]], [44, ["number", 0], 924, 436, [10, null]], [45, ["number", 2], 1044, 346, [7, null]], [46, "clean", 227, 220, [55, 75]], [47, ["setxy2", 0], 227, 288, [75, 48, 49, 76]], [48, ["number", 0], 285, 288, [47, null]], [49, ["number", -400], 285, 330, [47, null]], [50, "storeinbox1", 227, 406, [76, 51, 52]], [51, ["number", 300], 345, 406, [50, null]], [52, "setcolor", 227, 448, [50, 53, 54]], [53, ["number", 10], 304, 448, [52, null]], [54, "stack1", 227, 490, [52, null]], [55, ["start", 2.0], 227, 178, [null, 46]], [56, ["product2", 0], 603, 537, [40, 57, 58]], [57, "box1", 657, 537, [56, null]], [58, ["number", 1.5], 657, 579, [56, null]], [59, ["division2", 0], 603, 259, [31, 60, 61]], [60, "box1", 657, 259, [59, null]], [61, ["number", 1.5], 681, 301, [59, null]], [62, ["division2", 0], 950, 934, [28, 63, 64]], [63, "box1", 1004, 934, [62, null]], [64, ["number", 2], 1028, 976, [62, null]], [65, ["division2", 0], 963, 530, [13, 66, 67]], [66, "box1", 1017, 530, [65, null]], [67, ["number", 2], 1041, 572, [65, null]], [68, ["vspace", 0], 840, 134, [1, 2]], [69, "hat2", 485, 175, [null, 29]], [70, "stack2", 892, 244, [2, null]], [71, ["vspace", 0], 840, 262, [2, 6]], [72, ["vspace", 20.0], 840, 346, [6, 9]], [73, ["vspace", 0], 892, 572, [13, 14]], [74, ["vspace", 0], 485, 301, [31, 32]], [75, "penup", 227, 254, [46, 47]], [76, "pendown", 227, 372, [47, 50]], [-1, ["turtle", 1], 1, -3, 0, 0, 50, 5]] \ No newline at end of file +[[0, "pendown", 838, 221, [58, 52]], +[1, ["if", 0], 838, 305, [52, 2, 68, 72]], +[2, ["greater2", 0], 894, 271, [1, 80, 3, null]], +[3, ["number", 10], 964, 313, [2, null]], +[4, ["random", 0], 906, 473, [72, 5, 35, null]], +[5, ["number", 0], 992, 473, [4, null]], +[6, ["if", 231], 838, 597, [53, 7, 8, null]], +[7, ["equal2", 0], 894, 563, [6, 82, 34, null]], +[8, "penup", 856, 663, [6, 9]], +[9, "forward", 856, 705, [8, 50, 54]], +[10, "setcolor", 856, 789, [54, 11, 12]], +[11, ["number", 40], 933, 789, [10, null]], +[12, "setpensize", 856, 831, [10, 13, 14]], +[13, ["number", 20], 958, 831, [12, null]], +[14, "forward", 856, 873, [12, 15, 16]], +[15, ["number", 1], 927, 873, [14, null]], +[16, "pendown", 856, 915, [14, 17]], +[17, "back", 856, 957, [16, 18, 19]], +[18, ["number", 1], 914, 957, [17, null]], +[19, "setcolor", 856, 999, [17, 20, 21]], +[20, ["number", 10], 933, 999, [19, null]], +[21, "setpensize", 856, 1041, [19, 22, 23]], +[22, ["number", 5], 958, 1041, [21, null]], +[23, "penup", 856, 1083, [21, 24]], +[24, "back", 856, 1125, [23, 48, null]], +[25, "forward", 475, 219, [60, 76, 74]], +[26, "right", 475, 387, [55, 27, 64]], +[27, ["number", 30], 533, 387, [26, null]], +[28, "left", 475, 471, [64, 29, 66]], +[29, ["number", 60], 533, 471, [28, null]], +[30, "right", 475, 555, [66, 31, 70]], +[31, ["number", 30], 533, 555, [30, null]], +[32, "penup", 475, 681, [70, 33]], +[33, "back", 475, 723, [32, 86, null]], +[34, ["number", 0], 940, 605, [7, null]], +[35, ["number", 2], 992, 515, [4, null]], +[36, "clean", 227, 224, [43, 56]], +[37, ["setxy2", 0], 227, 308, [56, 38, 39, 57]], +[38, ["number", 0], 285, 308, [37, null]], +[39, ["number", -400], 285, 350, [37, null]], +[40, ["number", 300.0], 295, 476, [92, null]], +[41, "setcolor", 227, 518, [92, 42, 62]], +[42, ["number", 10], 304, 518, [41, null]], +[43, ["start", 2.0], 227, 178, [null, 36]], +[44, ["product2", 0], 543, 639, [70, 84, 45]], +[45, ["number", 1.5], 597, 681, [44, null]], +[46, ["division2", 0], 543, 303, [74, 78, 47]], +[47, ["number", 1.5], 621, 345, [46, null]], +[48, ["division2", 0], 914, 1125, [24, 90, 49]], +[49, ["number", 2], 992, 1167, [48, null]], +[50, ["division2", 0], 927, 705, [9, 88, 51]], +[51, ["number", 2], 1005, 747, [50, null]], +[52, ["vspace", 0], 838, 263, [0, 1]], +[53, ["vspace", 20], 838, 515, [72, 6]], +[54, ["vspace", 0], 856, 747, [9, 10]], +[55, ["vspace", 0], 475, 345, [74, 26]], +[56, "penup", 227, 266, [36, 37]], +[57, "pendown", 227, 392, [37, 92]], +[58, "hat", 838, 167, [null, 59, 0]], +[59, ["string", "action"], 896, 179, [58, null]], +[60, "hat", 475, 165, [null, 61, 25]], +[61, ["string", "action_2"], 533, 177, [60, null]], +[62, "stack", 227, 560, [41, 63, null]], +[63, ["string", "action"], 285, 560, [62, null]], +[64, "stack", 475, 429, [26, 65, 28]], +[65, ["string", "action"], 533, 429, [64, null]], +[66, "stack", 475, 513, [28, 67, 30]], +[67, ["string", "action"], 533, 513, [66, null]], +[68, "stack", 856, 371, [1, 69, null]], +[69, ["string", "action_2"], 914, 371, [68, null]], +[70, ["storein", 0], 475, 597, [30, 71, 44, 32]], +[71, ["string", "box 1"], 543, 597, [70, null]], +[72, ["storein", 0], 838, 431, [1, 73, 4, 53]], +[73, ["string", "box 2"], 906, 431, [72, null]], +[74, ["storein", 0], 475, 261, [25, 75, 46, 55]], +[75, ["string", "box 1"], 543, 261, [74, null]], +[76, "box", 546, 219, [25, 77, null]], +[77, ["string", "box 1"], 601, 219, [76, null]], +[78, "box", 597, 303, [46, 79, null]], +[79, ["string", "box 1"], 652, 303, [78, null]], +[80, "box", 940, 271, [2, 81, null]], +[81, ["string", "box 1"], 995, 271, [80, null]], +[82, "box", 940, 563, [7, 83, null]], +[83, ["string", "box 2"], 995, 563, [82, null]], +[84, "box", 597, 639, [44, 85, null]], +[85, ["string", "box 1"], 652, 639, [84, null]], +[86, "box", 533, 723, [33, 87, null]], +[87, ["string", "box 1"], 588, 723, [86, null]], +[88, "box", 981, 705, [50, 89, null]], +[89, ["string", "box 1"], 1036, 705, [88, null]], +[90, "box", 968, 1125, [48, 91, null]], +[91, ["string", "box 1"], 1023, 1125, [90, null]], +[92, ["storein", 0], 227, 434, [57, 93, 40, 41]], +[93, ["string", "box 1"], 295, 434, [92, null]]] diff --git a/samples/graphics-xo-child.ta b/samples/graphics-xo-child.ta index d085a93..34f5d14 100644 --- a/samples/graphics-xo-child.ta +++ b/samples/graphics-xo-child.ta @@ -1 +1,72 @@ -[[0, "clean", 328, 217, [1, 51]], [1, ["start", 2.0], 328, 175, [null, 0]], [2, "hat2", 331, 514, [null, 3]], [3, "setcolor", 331, 556, [2, 4, 60]], [4, ["random", 0], 408, 556, [3, 5, 6, null]], [5, ["number", 0], 494, 556, [4, null]], [6, ["number", 100], 494, 598, [4, null]], [7, "setpensize", 331, 632, [60, 8, 9]], [8, ["number", 40], 433, 632, [7, null]], [9, "stack1", 331, 674, [7, 10]], [10, "setcolor", 331, 708, [9, 11, 61]], [11, ["plus2", 0], 408, 708, [10, 12, 13]], [12, "color", 462, 708, [11, null]], [13, ["number", 10], 462, 750, [11, null]], [14, "setpensize", 331, 784, [61, 15, 18]], [15, ["minus2", 0], 433, 784, [14, 16, 17]], [16, "pensize", 487, 784, [15, null]], [17, ["number", 25], 511, 826, [15, null]], [18, "stack1", 331, 826, [14, null]], [19, "hat1", 682, 171, [null, 20]], [20, "left", 682, 213, [19, 21, 22]], [21, ["number", 45], 740, 213, [20, null]], [22, "repeat", 682, 255, [20, 23, 24, 30]], [23, ["number", 4], 733, 255, [22, null]], [24, "forward", 747, 315, [22, 25, 26]], [25, ["number", 75], 818, 315, [24, null]], [26, "back", 747, 357, [24, 27, 28]], [27, ["number", 75], 805, 357, [26, null]], [28, "left", 747, 399, [26, 29, null]], [29, ["number", 90], 805, 399, [28, null]], [30, ["vspace", 40.0], 682, 333, [22, 31]], [31, "right", 682, 447, [30, 32, 33]], [32, ["number", 45], 740, 447, [31, null]], [33, "penup", 682, 489, [31, 34]], [34, "forward", 682, 523, [33, 35, 36]], [35, ["number", 90], 753, 523, [34, null]], [36, "pendown", 682, 565, [34, 37]], [37, "setpensize", 682, 599, [36, 45, 59]], [38, "forward", 682, 675, [59, 39, 40]], [39, ["number", 1], 753, 675, [38, null]], [40, "penup", 682, 717, [38, 41]], [41, "back", 682, 751, [40, 42, 43]], [42, ["number", 91], 740, 751, [41, null]], [43, "pendown", 682, 793, [41, 44]], [44, "setpensize", 682, 827, [43, 48, null]], [45, ["plus2", 0], 784, 599, [37, 46, 47]], [46, "pensize", 838, 599, [45, null]], [47, ["number", 35], 838, 641, [45, null]], [48, ["minus2", 0], 784, 827, [44, 49, 50]], [49, "pensize", 838, 827, [48, null]], [50, ["number", 35], 862, 869, [48, null]], [51, "repeat", 328, 251, [0, 52, 53, null]], [52, ["number", 500], 379, 251, [51, null]], [53, "penup", 393, 311, [51, 54]], [54, ["setxy2", 20.0], 393, 345, [53, 55, 56, 57]], [55, ["random", 0], 451, 345, [54, 62, 63, null]], [56, ["random", 0], 451, 427, [54, 64, 65, null]], [57, "pendown", 393, 469, [54, 58]], [58, "stack2", 393, 503, [57, null]], [59, ["vspace", 0], 682, 641, [37, 38]], [60, ["vspace", 0], 331, 598, [3, 7]], [61, ["vspace", 0], 331, 750, [10, 14]], [62, "leftpos", 537, 345, [55, null]], [63, "rightpos", 537, 387, [55, null]], [64, "bottompos", 537, 427, [56, null]], [65, "toppos", 537, 469, [56, null]]] \ No newline at end of file +[[0, "clean", 77, 166, [1, 47]], +[1, ["start", 2.0], 77, 124, [null, 0]], +[2, "setcolor", 705, 50, [63, 3, 55]], +[3, ["random", 0], 782, 50, [2, 4, 5, null]], +[4, ["number", 0], 868, 50, [3, null]], +[5, ["number", 100], 868, 92, [3, null]], +[6, "setpensize", 705, 134, [55, 7, 69]], +[7, ["number", 40], 807, 134, [6, null]], +[8, "setcolor", 705, 218, [69, 9, 56]], +[9, ["plus2", 0], 782, 218, [8, 10, 11]], +[10, "color", 836, 218, [9, null]], +[11, ["number", 10], 836, 260, [9, null]], +[12, "setpensize", 705, 302, [56, 13, 71]], +[13, ["minus2", 0], 807, 302, [12, 14, 15]], +[14, "pensize", 861, 302, [13, null]], +[15, ["number", 25], 885, 344, [13, null]], +[16, "left", 438, 50, [61, 17, 18]], +[17, ["number", 45], 496, 50, [16, null]], +[18, "repeat", 438, 92, [16, 19, 20, 26]], +[19, ["number", 4], 489, 92, [18, null]], +[20, "forward", 503, 152, [18, 21, 22]], +[21, ["number", 75], 574, 152, [20, null]], +[22, "back", 503, 194, [20, 23, 24]], +[23, ["number", 75], 561, 194, [22, null]], +[24, "left", 503, 236, [22, 25, null]], +[25, ["number", 90], 561, 236, [24, null]], +[26, ["vspace", 40.0], 438, 170, [18, 27]], +[27, "right", 438, 292, [26, 28, 29]], +[28, ["number", 45], 496, 292, [27, null]], +[29, "penup", 438, 334, [27, 30]], +[30, "forward", 438, 376, [29, 31, 32]], +[31, ["number", 90], 509, 376, [30, null]], +[32, "pendown", 438, 418, [30, 33]], +[33, "setpensize", 438, 460, [32, 41, 54]], +[34, "forward", 438, 544, [54, 35, 36]], +[35, ["number", 1], 509, 544, [34, null]], +[36, "penup", 438, 586, [34, 37]], +[37, "back", 438, 628, [36, 38, 39]], +[38, ["number", 91], 496, 628, [37, null]], +[39, "pendown", 438, 670, [37, 40]], +[40, "setpensize", 438, 712, [39, 44, null]], +[41, ["plus2", 0], 540, 460, [33, 42, 43]], +[42, "pensize", 594, 460, [41, null]], +[43, ["number", 35], 594, 502, [41, null]], +[44, ["minus2", 0], 540, 712, [40, 45, 46]], +[45, "pensize", 594, 712, [44, null]], +[46, ["number", 35], 618, 754, [44, null]], +[47, "repeat", 77, 208, [0, 48, 49, null]], +[48, ["number", 500], 128, 208, [47, null]], +[49, "penup", 142, 268, [47, 50]], +[50, ["setxy2", 20.0], 142, 310, [49, 51, 52, 53]], +[51, ["random", 0], 200, 310, [50, 57, 58, null]], +[52, ["random", 0], 200, 392, [50, 59, 60, null]], +[53, "pendown", 142, 434, [50, 65]], +[54, ["vspace", 0], 438, 502, [33, 34]], +[55, ["vspace", 0], 705, 92, [2, 6]], +[56, ["vspace", 0], 705, 260, [8, 12]], +[57, "leftpos", 286, 310, [51, null]], +[58, "rightpos", 286, 352, [51, null]], +[59, "bottompos", 286, 392, [52, null]], +[60, "toppos", 286, 434, [52, null]], +[61, "hat", 438, 0, [null, 62, 16]], +[62, ["string", "xo"], 496, 8, [61, null]], +[63, "hat", 705, 0, [null, 64, 2]], +[64, ["string", "xo man"], 763, 8, [63, null]], +[65, "stack", 142, 476, [53, 66, null]], +[66, ["string", "xo man"], 200, 476, [65, null]], +[67, "stack", 705, 386, [71, 68, null]], +[68, ["string", "xo"], 763, 386, [67, null]], +[69, "stack", 705, 176, [6, 70, 8]], +[70, ["string", "xo"], 763, 176, [69, null]], +[71, ["vspace", 0], 705, 344, [12, 67]]] diff --git a/samples/math-Pythagoras.ta b/samples/math-Pythagoras.ta index 3c76e58..b2349ff 100644 --- a/samples/math-Pythagoras.ta +++ b/samples/math-Pythagoras.ta @@ -1 +1,155 @@ -[[0, "hat", 743, 369, [null, 1, 145]], [1, ["string", "draw b"], 801, 377, [0, null]], [2, "storeinbox1", 743, 453, [145, 3, 146]], [3, ["division2", 0], 861, 453, [2, 4, 6]], [4, "box", 915, 453, [3, 5, null]], [5, ["string", "side b"], 970, 453, [4, null]], [6, ["number", 2], 939, 495, [3, null]], [7, "forward", 743, 537, [146, 8, 120]], [8, "box1", 814, 537, [7, null]], [9, "forward", 743, 621, [120, 10, 126]], [10, "box1", 814, 621, [9, null]], [11, "hat", 439, 194, [null, 12, 142]], [12, ["string", "find h"], 497, 202, [11, null]], [13, ["storein", 0], 439, 278, [142, 14, 15, 27]], [14, ["string", "hypotenuse"], 507, 278, [13, null]], [15, "sqrt", 507, 320, [13, 16]], [16, ["plus2", 20.0], 561, 320, [15, 17, 22]], [17, ["product2", 0], 615, 320, [16, 18, 20]], [18, "box", 669, 320, [17, 19, null]], [19, ["string", "side a"], 724, 320, [18, null]], [20, "box", 669, 362, [17, 21, null]], [21, ["string", "side a"], 724, 362, [20, null]], [22, ["product2", 0], 615, 402, [16, 23, 25]], [23, "box", 669, 402, [22, 24, null]], [24, ["string", "side b"], 724, 402, [23, null]], [25, "box", 669, 444, [22, 26, null]], [26, ["string", "side b"], 724, 444, [25, null]], [27, ["vspace", 40.0], 439, 362, [13, 28]], [28, ["storein", 0], 439, 484, [27, 29, 30, 129]], [29, ["string", "radius"], 507, 484, [28, null]], [30, ["division2", 0], 507, 526, [28, 31, 33]], [31, "box", 561, 526, [30, 32, null]], [32, ["string", "hypotenuse"], 616, 526, [31, null]], [33, ["number", 2], 585, 568, [30, null]], [34, "hat", 746, 227, [null, 35, 148]], [35, ["string", "draw a"], 804, 235, [34, null]], [36, "storeinbox1", 746, 311, [148, 37, 147]], [37, ["division2", 0], 864, 311, [36, 38, 40]], [38, "box", 918, 311, [37, 39, null]], [39, ["string", "side a"], 973, 311, [38, null]], [40, ["number", 2], 942, 353, [37, null]], [41, "forward", 746, 395, [147, 42, 122]], [42, "box1", 817, 395, [41, null]], [43, "forward", 746, 479, [122, 44, 127]], [44, "box1", 817, 479, [43, null]], [45, "hat", 759, 82, [null, 46, 149]], [46, ["string", "draw h"], 817, 90, [45, null]], [47, ["arc", 0], 759, 166, [149, 48, 49, 51]], [48, ["number", 360], 817, 166, [47, null]], [49, "box", 817, 208, [47, 50, null]], [50, ["string", "radius"], 872, 208, [49, null]], [51, "print", 759, 250, [47, 52, 54]], [52, "box", 817, 250, [51, 53, null]], [53, ["string", "angle"], 872, 250, [52, null]], [54, "right", 759, 292, [51, 55, 56]], [55, ["number", 90], 817, 292, [54, null]], [56, "forward", 759, 334, [54, 57, 124]], [57, "box", 830, 334, [56, 58, null]], [58, ["string", "radius"], 885, 334, [57, null]], [59, "forward", 759, 418, [124, 60, 128]], [60, "box", 830, 418, [59, 61, null]], [61, ["string", "radius"], 885, 418, [60, null]], [62, "hat", 452, 329, [null, 63, 144]], [63, ["string", "find a"], 510, 337, [62, null]], [64, ["storein", 0], 452, 413, [144, 65, 66, 67]], [65, ["string", "angle"], 520, 413, [64, null]], [66, ["number", 0], 520, 455, [64, null]], [67, "setshade", 452, 497, [64, 68, 69]], [68, ["number", 95], 537, 497, [67, null]], [69, "repeat", 452, 539, [67, 70, 71, 131]], [70, ["number", 360], 503, 539, [69, null]], [71, ["arc", 0], 517, 599, [69, 72, 73, 130]], [72, ["number", 180], 575, 599, [71, null]], [73, "box", 575, 641, [71, 74, null]], [74, ["string", "radius"], 630, 641, [73, null]], [75, "if", 517, 725, [130, 76, 79, 82]], [76, ["greater2", 0], 555, 691, [75, 77, 78, null]], [77, "ycor", 601, 691, [76, null]], [78, ["number", 0], 601, 733, [76, null]], [79, "setshade", 569, 793, [75, 80, 81]], [80, ["number", 50], 654, 793, [79, null]], [81, "stopstack", 569, 835, [79, null]], [82, ["vspace", 0], 517, 811, [75, 83]], [83, "penup", 517, 853, [82, 84]], [84, ["storein", 0], 517, 887, [83, 85, 86, 143]], [85, ["string", "angle"], 585, 887, [84, null]], [86, ["plus2", 0], 585, 929, [84, 87, 89]], [87, "box", 639, 929, [86, 88, null]], [88, ["string", "angle"], 694, 929, [87, null]], [89, ["number", 1], 639, 971, [86, null]], [90, ["arc", 0], 517, 1013, [143, 91, 92, 94]], [91, ["number", 180], 575, 1013, [90, null]], [92, "box", 575, 1055, [90, 93, null]], [93, ["string", "radius"], 630, 1055, [92, null]], [94, "right", 517, 1097, [90, 95, 96]], [95, ["number", 1], 575, 1097, [94, null]], [96, "pendown", 517, 1139, [94, null]], [97, "hideblocks", 1062, 160, [141, 98]], [98, "clean", 1062, 194, [97, 150]], [99, ["storein", 0], 1062, 420, [151, 100, 101, 102]], [100, ["string", "side a"], 1130, 420, [99, null]], [101, ["number", 200], 1130, 462, [99, null]], [102, ["storein", 0], 1062, 504, [99, 103, 104, 105]], [103, ["string", "side b"], 1130, 504, [102, null]], [104, ["number", 450], 1130, 546, [102, null]], [105, "stack", 1062, 588, [102, 106, 107]], [106, ["string", "draw a"], 1120, 588, [105, null]], [107, "right", 1062, 630, [105, 108, 109]], [108, ["number", 90], 1120, 630, [107, null]], [109, "stack", 1062, 672, [107, 110, 111]], [110, ["string", "draw b"], 1120, 672, [109, null]], [111, "stack", 1062, 714, [109, 112, 113]], [112, ["string", "find h"], 1120, 714, [111, null]], [113, "stack", 1062, 756, [111, 114, 115]], [114, ["string", "find a"], 1120, 756, [113, null]], [115, "stack", 1062, 798, [113, 116, 152]], [116, ["string", "draw h"], 1120, 798, [115, null]], [117, ["setxy2", 0], 1062, 874, [152, 132, 133, 153]], [118, ["journal", "./samples/images/Pythagoras.jpg"], 1172, 992, [135, null]], [119, ["start", 2.0], 1062, 84, [null, 141]], [120, "show", 743, 579, [7, 121, 9]], [121, ["string", "b"], 801, 579, [120, null]], [122, "show", 746, 437, [41, 123, 43]], [123, ["string", "a"], 804, 437, [122, null]], [124, "show", 759, 376, [56, 125, 59]], [125, ["string", "h"], 817, 376, [124, null]], [126, ["sandwichcollapsed", 1], 743, 453, [9, null]], [127, ["sandwichcollapsed", 1], 746, 311, [43, null]], [128, ["sandwichcollapsed", 1], 759, 166, [59, null]], [129, ["sandwichcollapsed", 1], 439, 278, [28, null]], [130, ["vspace", 0], 517, 683, [71, 75]], [131, ["sandwichcollapsed", 1], 452, 413, [69, null]], [132, "leftpos", 1120, 874, [117, null]], [133, "toppos", 1120, 916, [117, null]], [134, ["setxy2", 20], 1062, 262, [150, 140, 137, 151]], [135, "showaligned", 1062, 992, [153, 118, 136]], [136, ["sandwichcollapsed", 1], 1062, 160, [135, null]], [137, ["number", 0], 1120, 344, [134, null]], [138, ["number", -4], 1198, 304, [140, null]], [139, "width", 1174, 262, [140, null]], [140, ["division2", 0], 1120, 262, [134, 139, 138]], [141, "sandwichtop_no_arm_no_label", 1044, 126, [119, 97]], [142, "sandwichtop_no_arm_no_label", 421, 244, [11, 13]], [143, ["vspace", 0], 517, 971, [84, 90]], [144, "sandwichtop_no_arm_no_label", 434, 379, [62, 64]], [145, "sandwichtop_no_arm_no_label", 725, 419, [0, 2]], [146, ["vspace", 0], 743, 495, [2, 7]], [147, ["vspace", 0], 746, 353, [36, 41]], [148, "sandwichtop_no_arm_no_label", 728, 277, [34, 36]], [149, "sandwichtop_no_arm_no_label", 741, 132, [45, 47]], [150, "penup", 1062, 228, [98, 134]], [151, "pendown", 1062, 386, [134, 99]], [152, "penup", 1062, 840, [115, 117]], [153, "pendown", 1062, 958, [117, 135]]] \ No newline at end of file +[[0, "hat", 743, 369, [null, 1, 144]], +[1, ["string", "draw b"], 801, 381, [0, null]], +[2, "storeinbox1", 726, 433, [144, 3, 145]], +[3, ["division2", 0], 844, 433, [2, 4, 6]], +[4, "box", 898, 433, [3, 5, null]], +[5, ["string", "side b"], 953, 433, [4, null]], +[6, ["number", 2], 922, 475, [3, null]], +[7, "forward", 726, 517, [145, 8, 120]], +[8, "box1", 797, 517, [7, null]], +[9, "forward", 726, 601, [120, 10, 126]], +[10, "box1", 797, 601, [9, null]], +[11, "hat", 56, 227, [null, 12, 141]], +[12, ["string", "find h"], 114, 239, [11, null]], +[13, ["storein", 0], 39, 291, [141, 14, 15, 27]], +[14, ["string", "hypotenuse"], 107, 291, [13, null]], +[15, "sqrt", 107, 333, [13, 16]], +[16, ["plus2", 20.0], 161, 333, [15, 17, 22]], +[17, ["product2", 0], 215, 333, [16, 18, 20]], +[18, "box", 269, 333, [17, 19, null]], +[19, ["string", "side a"], 324, 333, [18, null]], +[20, "box", 269, 375, [17, 21, null]], +[21, ["string", "side a"], 324, 375, [20, null]], +[22, ["product2", 0], 215, 415, [16, 23, 25]], +[23, "box", 269, 415, [22, 24, null]], +[24, ["string", "side b"], 324, 415, [23, null]], +[25, "box", 269, 457, [22, 26, null]], +[26, ["string", "side b"], 324, 457, [25, null]], +[27, ["vspace", 40.0], 39, 375, [13, 28]], +[28, ["storein", 0], 39, 497, [27, 29, 30, 129]], +[29, ["string", "radius"], 107, 497, [28, null]], +[30, ["division2", 0], 107, 539, [28, 31, 33]], +[31, "box", 161, 539, [30, 32, null]], +[32, ["string", "hypotenuse"], 216, 539, [31, null]], +[33, ["number", 2], 185, 581, [30, null]], +[34, "hat", 746, 227, [null, 35, 147]], +[35, ["string", "draw a"], 804, 239, [34, null]], +[36, "storeinbox1", 729, 291, [147, 37, 146]], +[37, ["division2", 0], 847, 291, [36, 38, 40]], +[38, "box", 901, 291, [37, 39, null]], +[39, ["string", "side a"], 956, 291, [38, null]], +[40, ["number", 2], 925, 333, [37, null]], +[41, "forward", 729, 375, [146, 42, 122]], +[42, "box1", 800, 375, [41, null]], +[43, "forward", 729, 459, [122, 44, 127]], +[44, "box1", 800, 459, [43, null]], +[45, "hat", 759, 82, [null, 46, 148]], +[46, ["string", "draw h"], 817, 94, [45, null]], +[47, ["arc", 0], 742, 146, [148, 48, 49, 51]], +[48, ["number", 360], 800, 146, [47, null]], +[49, "box", 800, 188, [47, 50, null]], +[50, ["string", "radius"], 855, 188, [49, null]], +[51, "print", 742, 230, [47, 52, 54]], +[52, "box", 800, 230, [51, 53, null]], +[53, ["string", "angle"], 855, 230, [52, null]], +[54, "right", 742, 272, [51, 55, 56]], +[55, ["number", 90], 800, 272, [54, null]], +[56, "forward", 742, 314, [54, 57, 124]], +[57, "box", 813, 314, [56, 58, null]], +[58, ["string", "radius"], 868, 314, [57, null]], +[59, "forward", 742, 398, [124, 60, 128]], +[60, "box", 813, 398, [59, 61, null]], +[61, ["string", "radius"], 868, 398, [60, null]], +[62, "hat", 452, 329, [null, 63, 143]], +[63, ["string", "find a"], 510, 341, [62, null]], +[64, ["storein", 0], 435, 393, [143, 65, 66, 67]], +[65, ["string", "angle"], 503, 393, [64, null]], +[66, ["number", 0], 503, 435, [64, null]], +[67, "setshade", 435, 477, [64, 68, 69]], +[68, ["number", 95], 520, 477, [67, null]], +[69, ["repeat", 315], 435, 519, [67, 70, 71, 131]], +[70, ["number", 360], 494, 519, [69, null]], +[71, ["arc", 0], 453, 561, [69, 72, 73, 130]], +[72, ["number", 180], 511, 561, [71, null]], +[73, "box", 511, 603, [71, 74, null]], +[74, ["string", "radius"], 566, 603, [73, null]], +[75, ["if", 21], 453, 687, [130, 76, 79, 82]], +[76, ["greater2", 0], 509, 653, [75, 77, 78, null]], +[77, "ycor", 555, 653, [76, null]], +[78, ["number", 0], 579, 695, [76, null]], +[79, "setshade", 471, 753, [75, 80, 81]], +[80, ["number", 50], 556, 753, [79, null]], +[81, "stopstack", 471, 795, [79, null]], +[82, ["vspace", 0], 453, 855, [75, 83]], +[83, "penup", 453, 897, [82, 84]], +[84, ["storein", 0], 453, 939, [83, 85, 86, 142]], +[85, ["string", "angle"], 521, 939, [84, null]], +[86, ["plus2", 0], 521, 981, [84, 87, 89]], +[87, "box", 575, 981, [86, 88, null]], +[88, ["string", "angle"], 630, 981, [87, null]], +[89, ["number", 1], 575, 1023, [86, null]], +[90, ["arc", 0], 453, 1065, [142, 91, 92, 94]], +[91, ["number", 180], 511, 1065, [90, null]], +[92, "box", 511, 1107, [90, 93, null]], +[93, ["string", "radius"], 566, 1107, [92, null]], +[94, "right", 453, 1149, [90, 95, 96]], +[95, ["number", 1], 511, 1149, [94, null]], +[96, "pendown", 453, 1191, [94, null]], +[97, "hideblocks", 988, 139, [140, 98]], +[98, "clean", 988, 181, [97, 149]], +[99, ["storein", 0], 988, 431, [150, 100, 101, 102]], +[100, ["string", "side a"], 1056, 431, [99, null]], +[101, ["number", 200], 1056, 473, [99, null]], +[102, ["storein", 0], 988, 515, [99, 103, 104, 105]], +[103, ["string", "side b"], 1056, 515, [102, null]], +[104, ["number", 450], 1056, 557, [102, null]], +[105, "stack", 988, 599, [102, 106, 107]], +[106, ["string", "draw a"], 1046, 599, [105, null]], +[107, "right", 988, 641, [105, 108, 109]], +[108, ["number", 90], 1046, 641, [107, null]], +[109, "stack", 988, 683, [107, 110, 111]], +[110, ["string", "draw b"], 1046, 683, [109, null]], +[111, "stack", 988, 725, [109, 112, 113]], +[112, ["string", "find h"], 1046, 725, [111, null]], +[113, "stack", 988, 767, [111, 114, 115]], +[114, ["string", "find a"], 1046, 767, [113, null]], +[115, "stack", 988, 809, [113, 116, 151]], +[116, ["string", "draw h"], 1046, 809, [115, null]], +[117, ["setxy2", 0], 988, 893, [151, 132, 133, 152]], +[118, ["journal", "./samples/images/Pythagoras.jpg"], 1098, 1061, [135, null]], +[119, ["start", 2.0], 970, 59, [null, 140]], +[120, "show", 726, 559, [7, 121, 9]], +[121, ["string", "b"], 784, 559, [120, null]], +[122, "show", 729, 417, [41, 123, 43]], +[123, ["string", "a"], 787, 417, [122, null]], +[124, "show", 742, 356, [56, 125, 59]], +[125, ["string", "h"], 800, 356, [124, null]], +[126, ["vspace", 1], 726, 643, [9, null]], +[127, ["vspace", 1], 729, 501, [43, null]], +[128, ["vspace", 1], 742, 440, [59, null]], +[129, ["vspace", 1], 39, 581, [28, null]], +[130, ["vspace", 0], 453, 645, [71, 75]], +[131, ["vspace", 1], 435, 1251, [69, null]], +[132, "leftpos", 1046, 893, [117, null]], +[133, "toppos", 1046, 935, [117, null]], +[134, ["setxy2", 20], 988, 265, [149, 139, 136, 150]], +[135, "showaligned", 988, 1061, [153, 118, null]], +[136, ["number", 0], 1046, 347, [134, null]], +[137, ["number", -4], 1124, 307, [139, null]], +[138, "width", 1100, 265, [139, null]], +[139, ["division2", 0], 1046, 265, [134, 138, 137]], +[140, ["sandwichclamp", 461], 970, 105, [119, 97, null]], +[141, "sandwichclampcollapsed", 56, 281, [11, 13, null]], +[142, ["vspace", 0], 453, 1023, [84, 90]], +[143, "sandwichclampcollapsed", 452, 383, [62, 64, null]], +[144, "sandwichclampcollapsed", 743, 423, [0, 2, null]], +[145, ["vspace", 0], 726, 475, [2, 7]], +[146, ["vspace", 0], 729, 333, [36, 41]], +[147, "sandwichclampcollapsed", 746, 281, [34, 36, null]], +[148, "sandwichclampcollapsed", 759, 136, [45, 47, null]], +[149, "penup", 988, 223, [98, 134]], +[150, "pendown", 988, 389, [134, 99]], +[151, "penup", 988, 851, [115, 117]], +[152, "pendown", 988, 977, [117, 153]], +[153, "seth", 988, 1019, [152, 154, 135]], +[154, ["number", 0], 1046, 1019, [153, null]]] diff --git a/samples/math-cherlin.ta b/samples/math-cherlin.ta index 631942f..97345f7 100644 --- a/samples/math-cherlin.ta +++ b/samples/math-cherlin.ta @@ -1 +1,108 @@ -[[0, "hat1", 541, 186, [null, 1]], [1, "repeat", 541, 228, [0, 2, 3, null]], [2, ["number", 100], 592, 228, [1, null]], [3, "setpensize", 606, 288, [1, 78, 4]], [4, "setcolor", 606, 330, [3, 5, 84]], [5, ["plus2", 0], 683, 330, [4, 6, 7]], [6, "color", 737, 330, [5, null]], [7, ["number", 2], 737, 372, [5, null]], [8, ["setxy2", 0], 606, 406, [84, 9, 10, 85]], [9, ["number", 0], 664, 406, [8, null]], [10, ["minus2", 0], 664, 448, [8, 11, 12]], [11, ["number", 0], 718, 448, [10, null]], [12, "box1", 742, 490, [10, null]], [13, "seth", 606, 524, [85, 14, 15]], [14, ["number", 270], 705, 524, [13, null]], [15, ["arc", 0], 606, 566, [13, 16, 17, 86]], [16, ["number", 360], 664, 566, [15, null]], [17, "box1", 664, 608, [15, null]], [18, ["setxy2", 0], 606, 684, [86, 19, 20, 87]], [19, ["number", 400], 664, 684, [18, null]], [20, ["minus2", 0], 664, 726, [18, 21, 22]], [21, "box1", 718, 726, [20, null]], [22, ["number", 200], 742, 768, [20, null]], [23, "forward", 606, 802, [87, 24, 25]], [24, ["number", 800], 677, 802, [23, null]], [25, "stack2", 606, 844, [23, 26]], [26, "storeinbox1", 606, 878, [25, 27, null]], [27, ["plus2", 0], 724, 878, [26, 28, 29]], [28, "box1", 778, 878, [27, null]], [29, ["number", 4], 778, 920, [27, null]], [30, ["start", 2.0], 265, 195, [null, 31]], [31, "clean", 265, 237, [30, 32]], [32, "setpensize", 265, 271, [31, 79, 33]], [33, "storeinbox1", 265, 313, [32, 34, 35]], [34, ["number", 100], 383, 313, [33, null]], [35, "setcolor", 265, 355, [33, 36, 80]], [36, ["number", 0], 342, 355, [35, null]], [37, ["setxy2", 0], 265, 431, [80, 38, 39, 81]], [38, ["number", 400], 323, 431, [37, null]], [39, ["number", -200], 323, 473, [37, null]], [40, "seth", 265, 549, [81, 41, 42]], [41, ["number", 270], 364, 549, [40, null]], [42, "forward", 265, 591, [40, 43, 82]], [43, ["number", 800], 336, 591, [42, null]], [44, ["setxy2", 0], 265, 667, [82, 45, 46, 83]], [45, ["number", 0], 323, 667, [44, null]], [46, ["number", 0], 323, 709, [44, null]], [47, "forward", 265, 785, [83, 48, 49]], [48, ["number", 0], 336, 785, [47, null]], [49, "stack1", 265, 827, [47, null]], [50, "hat2", 930, 192, [null, 51]], [51, "setpensize", 930, 234, [50, 52, 53]], [52, ["number", 8], 1032, 234, [51, null]], [53, "storeinbox2", 930, 276, [51, 54, 88]], [54, ["product2", 0], 1048, 276, [53, 55, 56]], [55, ["number", 20], 1102, 276, [54, null]], [56, "sqrt", 1102, 318, [54, 57]], [57, ["minus2", 0], 1156, 318, [56, 58, 59]], [58, "box1", 1210, 318, [57, null]], [59, ["number", 100], 1234, 360, [57, null]], [60, ["setxy2", 0], 930, 352, [88, 61, 62, 89]], [61, "box2", 988, 352, [60, null]], [62, ["minus2", 0], 988, 394, [60, 63, 64]], [63, "box1", 1042, 394, [62, null]], [64, ["number", 200], 1066, 436, [62, null]], [65, "forward", 930, 470, [89, 66, 90]], [66, ["identity2", 0], 1001, 470, [65, 67]], [67, ["number", 0], 1055, 470, [66, null]], [68, ["setxy2", 0], 930, 546, [90, 72, 73, 91]], [69, ["minus2", 0], 1162, 546, [72, 70, 71]], [70, ["number", 0], 1216, 546, [69, null]], [71, "box2", 1240, 588, [69, null]], [72, ["identity2", 60], 988, 546, [68, 69]], [73, ["minus2", 0], 988, 588, [68, 74, 75]], [74, "box1", 1042, 588, [73, null]], [75, ["number", 200], 1066, 630, [73, null]], [76, "forward", 930, 664, [91, 77, null]], [77, ["number", 0], 1001, 664, [76, null]], [78, ["number", 1], 708, 288, [3, null]], [79, ["number", 3], 367, 271, [32, null]], [80, "penup", 265, 397, [35, 37]], [81, "pendown", 265, 515, [37, 40]], [82, "penup", 265, 633, [42, 44]], [83, "pendown", 265, 751, [44, 47]], [84, "penup", 606, 372, [4, 8]], [85, "pendown", 606, 490, [8, 13]], [86, "penup", 606, 650, [15, 18]], [87, "pendown", 606, 768, [18, 23]], [88, "penup", 930, 318, [53, 60]], [89, "pendown", 930, 436, [60, 65]], [90, "penup", 930, 512, [65, 68]], [91, "pendown", 930, 630, [68, 76]]] \ No newline at end of file +[[0, ["repeat", 336], 559, 245, [74, 1, 2, null]], +[1, ["number", 100], 618, 245, [0, null]], +[2, "setpensize", 577, 287, [0, 60, 3]], +[3, "setcolor", 577, 329, [2, 4, 66]], +[4, ["plus2", 0], 654, 329, [3, 5, 6]], +[5, "color", 708, 329, [4, null]], +[6, ["number", 2], 708, 371, [4, null]], +[7, ["setxy2", 0], 577, 413, [66, 8, 9, 67]], +[8, ["number", 0], 635, 413, [7, null]], +[9, ["minus2", 0], 635, 455, [7, 10, 87]], +[10, ["number", 0], 689, 455, [9, null]], +[11, "seth", 577, 539, [67, 12, 13]], +[12, ["number", 270], 635, 539, [11, null]], +[13, ["arc", 0], 577, 581, [11, 14, 89, 68]], +[14, ["number", 360], 635, 581, [13, null]], +[15, ["setxy2", 0], 577, 707, [68, 16, 17, 69]], +[16, ["number", 400], 635, 707, [15, null]], +[17, ["minus2", 0], 635, 749, [15, 103, 18]], +[18, ["number", 200], 713, 791, [17, null]], +[19, "forward", 577, 833, [69, 20, 80]], +[20, ["number", 800], 648, 833, [19, null]], +[21, ["plus2", 0], 645, 959, [105, 101, 22]], +[22, ["number", 4], 699, 1001, [21, null]], +[23, ["start", 2.0], 265, 195, [null, 24]], +[24, "clean", 265, 241, [23, 25]], +[25, "setpensize", 265, 283, [24, 61, 82]], +[26, "setcolor", 265, 409, [82, 27, 62]], +[27, ["number", 0], 342, 409, [26, null]], +[28, ["setxy2", 0], 265, 493, [62, 29, 30, 63]], +[29, ["number", 400], 323, 493, [28, null]], +[30, ["number", -200], 323, 535, [28, null]], +[31, "seth", 265, 619, [63, 32, 33]], +[32, ["number", 270], 323, 619, [31, null]], +[33, "forward", 265, 661, [31, 34, 64]], +[34, ["number", 800], 336, 661, [33, null]], +[35, ["setxy2", 0], 265, 745, [64, 36, 37, 65]], +[36, ["number", 0], 323, 745, [35, null]], +[37, ["number", 0], 323, 787, [35, null]], +[38, "forward", 265, 871, [65, 39, 78]], +[39, ["number", 0], 336, 871, [38, null]], +[40, "setpensize", 925, 246, [76, 41, 85]], +[41, ["number", 8], 1027, 246, [40, null]], +[42, ["product2", 0], 993, 330, [85, 43, 44]], +[43, ["number", 20], 1047, 330, [42, null]], +[44, "sqrt", 1047, 372, [42, 45]], +[45, ["minus2", 0], 1101, 372, [44, 95, 46]], +[46, ["number", 100], 1179, 414, [45, null]], +[47, ["setxy2", 0], 925, 456, [107, 97, 48, 71]], +[48, ["minus2", 0], 983, 498, [47, 91, 49]], +[49, ["number", 200], 1061, 540, [48, null]], +[50, "forward", 925, 582, [71, 51, 72]], +[51, ["identity2", 0], 996, 582, [50, 52]], +[52, ["number", 0], 1050, 582, [51, null]], +[53, ["setxy2", 20], 925, 666, [72, 54, 56, 73]], +[54, ["minus2", 0], 983, 666, [53, 55, 99]], +[55, ["number", 0], 1037, 666, [54, null]], +[56, ["minus2", 0], 983, 748, [53, 93, 57]], +[57, ["number", 200], 1061, 790, [56, null]], +[58, "forward", 925, 832, [73, 59, null]], +[59, ["number", 0], 996, 832, [58, null]], +[60, ["number", 1], 679, 287, [2, null]], +[61, ["number", 3], 367, 283, [25, null]], +[62, "penup", 265, 451, [26, 28]], +[63, "pendown", 265, 577, [28, 31]], +[64, "penup", 265, 703, [33, 35]], +[65, "pendown", 265, 829, [35, 38]], +[66, "penup", 577, 371, [3, 7]], +[67, "pendown", 577, 497, [7, 11]], +[68, "penup", 577, 665, [13, 15]], +[69, "pendown", 577, 791, [15, 19]], +[70, "penup", 925, 372, [85, 107]], +[71, "pendown", 925, 540, [47, 50]], +[72, "penup", 925, 624, [50, 53]], +[73, "pendown", 925, 790, [53, 58]], +[74, "hat", 559, 191, [null, 75, 0]], +[75, ["string", "action"], 617, 203, [74, null]], +[76, "hat", 925, 192, [null, 77, 40]], +[77, ["string", "action_2"], 983, 204, [76, null]], +[78, "stack", 265, 913, [38, 79, null]], +[79, ["string", "action"], 323, 913, [78, null]], +[80, "stack", 577, 875, [19, 81, 105]], +[81, ["string", "action_2"], 635, 875, [80, null]], +[82, ["storein", 0], 265, 325, [25, 83, 84, 26]], +[83, ["string", "box 1"], 333, 325, [82, null]], +[84, ["number", 100], 333, 367, [82, null]], +[85, ["storein", 0], 925, 288, [40, 86, 42, 70]], +[86, ["string", "box 2"], 993, 288, [85, null]], +[87, "box", 713, 497, [9, 88, null]], +[88, ["string", "box 1"], 768, 497, [87, null]], +[89, "box", 635, 623, [13, 90, null]], +[90, ["string", "box 1"], 690, 623, [89, null]], +[91, "box", 1037, 498, [48, 92, null]], +[92, ["string", "box 1"], 1092, 498, [91, null]], +[93, "box", 1037, 748, [56, 94, null]], +[94, ["string", "box 1"], 1092, 748, [93, null]], +[95, "box", 1155, 372, [45, 96, null]], +[96, ["string", "box 1"], 1210, 372, [95, null]], +[97, "box", 983, 456, [47, 98, null]], +[98, ["string", "box 2"], 1038, 456, [97, null]], +[99, "box", 1061, 708, [54, 100, null]], +[100, ["string", "box 2"], 1116, 708, [99, null]], +[101, "box", 699, 959, [21, 102, null]], +[102, ["string", "box 1"], 754, 959, [101, null]], +[103, "box", 689, 749, [17, 104, null]], +[104, ["string", "box 1"], 744, 749, [103, null]], +[105, ["storein", 0], 577, 917, [80, 106, 21, null]], +[106, ["string", "box 1"], 645, 917, [105, null]], +[107, ["vspace", 0], 925, 414, [70, 47]]] diff --git a/samples/math-dice.ta b/samples/math-dice.ta index 7d45893..4e1592a 100644 --- a/samples/math-dice.ta +++ b/samples/math-dice.ta @@ -1,99 +1,108 @@ -[[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 +[[0, ["start", 2.0], 743, 65, [null, 20]], +[1, ["random", 0], 168, 418, [7, 2, 3, null]], +[2, ["number", 1], 254, 418, [1, null]], +[3, ["number", 6], 254, 460, [1, null]], +[4, ["random", 0], 168, 336, [7, 5, 6, null]], +[5, ["number", 1], 254, 336, [4, null]], +[6, ["number", 6], 254, 378, [4, null]], +[7, ["plus2", 20], 114, 336, [78, 4, 1]], +[8, ["storein", 0], 46, 500, [12, 96, 11, null]], +[9, ["number", 1], 168, 584, [11, null]], +[10, "box", 168, 542, [11, 98, null]], +[11, ["plus2", 0], 114, 542, [8, 10, 9]], +[12, ["vspace", 40], 46, 378, [78, 8]], +[13, ["repeat", 124], 28, 252, [14, 23, 78, null]], +[14, "hat", 28, 198, [null, 15, 13]], +[15, ["string", "toss dice"], 86, 210, [14, null]], +[16, "stack", 743, 237, [27, 17, 18]], +[17, ["string", "toss dice"], 801, 237, [16, null]], +[18, "stack", 743, 279, [16, 19, null]], +[19, ["string", "plot results"], 801, 279, [18, null]], +[20, ["storein", 0], 743, 111, [0, 21, 22, 27]], +[21, ["string", "trials"], 811, 111, [20, null]], +[22, ["number", 1600.0], 811, 153, [20, null]], +[23, "box", 87, 252, [13, 24, null]], +[24, ["string", "trials"], 142, 252, [23, null]], +[25, "hat", 869, 333, [null, 26, 85]], +[26, ["string", "clear bins"], 927, 345, [25, null]], +[27, "stack", 743, 195, [20, 28, 16]], +[28, ["string", "clear bins"], 801, 195, [27, null]], +[29, ["storein", 0], 887, 513, [33, 88, 30, 83]], +[30, ["number", 0], 955, 555, [29, null]], +[31, ["number", 1], 1009, 681, [32, null]], +[32, ["plus2", 0], 955, 639, [83, 90, 31]], +[33, ["repeat", 63], 869, 471, [85, 34, 29, null]], +[34, ["number", 11.0], 928, 471, [33, null]], +[35, "hat", 475, 98, [null, 36, 64]], +[36, ["string", "plot results"], 533, 110, [35, null]], +[37, "penup", 493, 362, [45, 39]], +[38, "pendown", 493, 694, [71, 61]], +[39, ["setxy2", 40], 493, 404, [37, 41, 40, 68]], +[40, ["number", 0], 551, 526, [39, null]], +[41, ["product2", 0], 551, 404, [39, 44, 42]], +[42, ["minus2", 0], 605, 446, [41, 92, 43]], +[43, ["number", 6], 683, 488, [42, null]], +[44, ["number", 50], 605, 404, [41, null]], +[45, ["repeat", 406], 475, 320, [80, 46, 37, 73]], +[46, ["number", 11], 534, 320, [45, null]], +[47, ["repeat", 63], 493, 862, [57, 48, 50, 58]], +[48, ["number", 2], 552, 862, [47, null]], +[49, ["vspace", 0], 493, 778, [61, 57]], +[50, "forward", 511, 904, [47, 67, 51]], +[51, "right", 511, 946, [50, 52, 53]], +[52, ["number", 90], 569, 946, [51, null]], +[53, "forward", 511, 988, [51, 54, 55]], +[54, ["number", 40], 582, 988, [53, null]], +[55, "right", 511, 1030, [53, 56, null]], +[56, ["number", 90], 569, 1030, [55, null]], +[57, "startfill", 493, 820, [49, 47]], +[58, "stopfill", 493, 1090, [47, 100]], +[59, ["number", 1], 615, 1216, [60, null]], +[60, ["plus2", 0], 561, 1174, [100, 102, 59]], +[61, "setcolor", 493, 736, [38, 63, 49]], +[62, ["number", 10], 624, 778, [63, null]], +[63, ["product2", 0], 570, 736, [61, 104, 62]], +[64, "clean", 475, 152, [35, 65]], +[65, "setshade", 475, 194, [64, 66, 80]], +[66, ["number", 25], 560, 194, [65, null]], +[67, "box", 582, 904, [50, 106, null]], +[68, "back", 493, 568, [39, 69, 70]], +[69, ["number", 50], 551, 568, [68, null]], +[70, "show", 493, 610, [68, 94, 71]], +[71, "forward", 493, 652, [70, 72, 38]], +[72, ["number", 50], 564, 652, [71, null]], +[73, "penup", 475, 1234, [45, 75]], +[74, "pendown", 475, 1360, [75, null]], +[75, ["setxy2", 0], 475, 1276, [73, 76, 77, 74]], +[76, ["number", 0], 533, 1276, [75, null]], +[77, ["number", -50], 533, 1318, [75, null]], +[78, ["storein", 0], 46, 294, [13, 79, 7, 12]], +[79, ["string", "box"], 114, 294, [78, null]], +[80, ["storein", 0], 475, 236, [65, 81, 82, 45]], +[81, ["string", "box"], 543, 236, [80, null]], +[82, ["number", 2.0], 543, 278, [80, null]], +[83, ["storein", 0], 887, 597, [29, 84, 32, null]], +[84, ["string", "box"], 955, 597, [83, null]], +[85, ["storein", 0], 869, 387, [25, 86, 87, 33]], +[86, ["string", "box"], 937, 387, [85, null]], +[87, ["number", 2.0], 937, 429, [85, null]], +[88, "box", 955, 513, [29, 89, null]], +[89, ["string", "box"], 1010, 513, [88, null]], +[90, "box", 1009, 639, [32, 91, null]], +[91, ["string", "box"], 1064, 639, [90, null]], +[92, "box", 659, 446, [42, 93, null]], +[93, ["string", "box"], 714, 446, [92, null]], +[94, "box", 551, 610, [70, 95, null]], +[95, ["string", "box"], 606, 610, [94, null]], +[96, "box", 114, 500, [8, 97, null]], +[97, ["string", "box"], 169, 500, [96, null]], +[98, "box", 223, 542, [10, 99, null]], +[99, ["string", "box"], 278, 542, [98, null]], +[100, ["storein", 0], 493, 1132, [58, 101, 60, null]], +[101, ["string", "box"], 561, 1132, [100, null]], +[102, "box", 615, 1174, [60, 103, null]], +[103, ["string", "box"], 670, 1174, [102, null]], +[104, "box", 624, 736, [63, 105, null]], +[105, ["string", "box"], 679, 736, [104, null]], +[106, "box", 637, 904, [67, 107, null]], +[107, ["string", "box"], 692, 904, [106, null]]] diff --git a/samples/math-forster.ta b/samples/math-forster.ta index 8e9678b..1df3d97 100644 --- a/samples/math-forster.ta +++ b/samples/math-forster.ta @@ -1 +1,88 @@ -[[0, "start", 175, 177, [null, 1]], [1, "storein", 175, 219, [0, 2, 3, 9]], [2, ["string", "program"], 243, 219, [1, null]], [3, ["string", "doit"], 243, 261, [1, null]], [4, "stack", 175, 429, [6, 5, null]], [5, ["string", "runarray"], 233, 429, [4, null]], [6, "storein", 175, 345, [9, 7, 8, 4]], [7, ["string", "program"], 243, 345, [6, null]], [8, ["string", "printit"], 243, 387, [6, null]], [9, "stack", 175, 303, [1, 10, 6]], [10, ["string", "runarray"], 233, 303, [9, null]], [11, ["string", "status"], 771, 189, [85, null]], [12, "print", 713, 231, [85, 13, null]], [13, "plus2", 771, 231, [12, 16, 14]], [14, "plus2", 825, 273, [13, 17, 15]], [15, "plus2", 879, 315, [14, 21, 19]], [16, ["string", "executing "], 825, 231, [13, null]], [17, "box", 879, 273, [14, 18, null]], [18, ["string", "program"], 934, 273, [17, null]], [19, "box", 933, 357, [15, 20, null]], [20, ["string", "row"], 988, 357, [19, null]], [21, ["string", "row"], 933, 315, [15, null]], [22, ["string", "runarray"], 471, 183, [84, null]], [23, "storein", 413, 225, [84, 24, 25, 26]], [24, ["string", "row"], 481, 225, [23, null]], [25, ["number", 1], 481, 267, [23, null]], [26, "repeat", 413, 309, [23, 27, 29, null]], [27, ["number", 10], 464, 309, [26, null]], [28, ["vspace", 40], 543, 639, [37, 48]], [29, "stack", 478, 369, [26, 30, 31]], [30, ["string", "status"], 536, 369, [29, null]], [31, "storein", 478, 411, [29, 32, 33, 34]], [32, ["string", "column"], 546, 411, [31, null]], [33, ["number", 1], 546, 453, [31, null]], [34, "repeat", 478, 495, [31, 35, 37, 36]], [35, ["number", 10], 529, 495, [34, null]], [36, ["vspace", 160], 478, 573, [34, 57]], [37, "storein", 543, 555, [34, 38, 39, 28]], [38, ["string", "index"], 611, 555, [37, null]], [39, "plus2", 611, 597, [37, 42, 40]], [40, "plus2", 665, 639, [39, 43, 41]], [41, "plus2", 719, 681, [40, 45, 46]], [42, ["string", "r:"], 665, 597, [39, null]], [43, "box", 719, 639, [40, 44, null]], [44, ["string", "row"], 774, 639, [43, null]], [45, ["string", " c:"], 773, 681, [41, null]], [46, "box", 773, 723, [41, 47, null]], [47, ["string", "column"], 828, 723, [46, null]], [48, "stack", 543, 753, [28, 49, 51]], [49, "box", 601, 753, [48, 50, null]], [50, ["string", "program"], 656, 753, [49, null]], [51, "storein", 543, 795, [48, 52, 54, null]], [52, ["string", "column"], 611, 795, [51, null]], [53, ["number", 1], 665, 879, [54, null]], [54, "plus2", 611, 837, [51, 55, 53]], [55, "box", 665, 837, [54, 56, null]], [56, ["string", "column"], 720, 837, [55, null]], [57, "storein", 478, 927, [36, 58, 60, null]], [58, ["string", "row"], 546, 927, [57, null]], [59, ["number", 1], 600, 1011, [60, null]], [60, "plus2", 546, 969, [57, 61, 59]], [61, "box", 600, 969, [60, 62, null]], [62, ["string", "row"], 655, 969, [61, null]], [63, ["string", "doit"], 783, 409, [86, null]], [64, "storein", 725, 451, [86, 66, 65, null]], [65, "product2", 793, 493, [64, 68, 70]], [66, "box", 793, 451, [64, 67, null]], [67, ["string", "index"], 848, 451, [66, null]], [68, "box", 847, 493, [65, 69, null]], [69, ["string", "row"], 902, 493, [68, null]], [70, "box", 847, 535, [65, 71, null]], [71, ["string", "column"], 902, 535, [70, null]], [72, ["string", "printit"], 237, 521, [87, null]], [73, "print", 179, 563, [87, 77, 75]], [74, "print", 179, 647, [75, 79, 82]], [75, "wait", 179, 605, [73, 76, 74]], [76, ["number", 0], 237, 605, [75, null]], [77, "box", 237, 563, [73, 78, null]], [78, ["string", "index"], 292, 563, [77, null]], [79, "box", 237, 647, [74, 80, null]], [80, "box", 292, 647, [79, 81, null]], [81, ["string", "index"], 347, 647, [80, null]], [82, "wait", 179, 689, [74, 83, null]], [83, ["number", 0], 237, 689, [82, null]], [84, "hat", 413, 175, [null, 22, 23]], [85, "hat", 713, 181, [null, 11, 12]], [86, "hat", 725, 401, [null, 63, 64]], [87, "hat", 179, 513, [null, 72, 73]]] \ No newline at end of file +[[0, ["start", 2.0], 175, 177, [null, 1]], +[1, ["storein", 0], 175, 223, [0, 2, 3, 9]], +[2, ["string", "program"], 243, 223, [1, null]], +[3, ["string", "doit"], 243, 265, [1, null]], +[4, "stack", 175, 433, [6, 5, null]], +[5, ["string", "runarray"], 233, 433, [4, null]], +[6, ["storein", 0], 175, 349, [9, 7, 8, 4]], +[7, ["string", "program"], 243, 349, [6, null]], +[8, ["string", "printit"], 243, 391, [6, null]], +[9, "stack", 175, 307, [1, 10, 6]], +[10, ["string", "runarray"], 233, 307, [9, null]], +[11, ["string", "status"], 771, 193, [85, null]], +[12, "print", 713, 235, [85, 13, null]], +[13, ["plus2", 0], 771, 235, [12, 16, 14]], +[14, ["plus2", 0], 825, 277, [13, 17, 15]], +[15, ["plus2", 0], 879, 319, [14, 21, 19]], +[16, ["string", "executing "], 825, 235, [13, null]], +[17, "box", 879, 277, [14, 18, null]], +[18, ["string", "program"], 934, 277, [17, null]], +[19, "box", 933, 361, [15, 20, null]], +[20, ["string", "row"], 988, 361, [19, null]], +[21, ["string", "row"], 933, 319, [15, null]], +[22, ["string", "runarray"], 471, 187, [84, null]], +[23, ["storein", 0], 413, 229, [84, 24, 25, 26]], +[24, ["string", "row"], 481, 229, [23, null]], +[25, ["number", 1], 481, 271, [23, null]], +[26, ["repeat", 301], 413, 313, [23, 27, 29, null]], +[27, ["number", 10], 472, 313, [26, null]], +[28, ["vspace", 40], 449, 607, [37, 48]], +[29, "stack", 431, 355, [26, 30, 31]], +[30, ["string", "status"], 489, 355, [29, null]], +[31, ["storein", 0], 431, 397, [29, 32, 33, 34]], +[32, ["string", "column"], 499, 397, [31, null]], +[33, ["number", 1], 499, 439, [31, null]], +[34, ["repeat", 145], 431, 481, [31, 35, 37, 36]], +[35, ["number", 10], 490, 481, [34, null]], +[36, ["vspace", 0], 431, 873, [34, 57]], +[37, ["storein", 0], 449, 523, [34, 38, 39, 28]], +[38, ["string", "index"], 517, 523, [37, null]], +[39, ["plus2", 0], 517, 565, [37, 42, 40]], +[40, ["plus2", 0], 571, 607, [39, 43, 41]], +[41, ["plus2", 0], 625, 649, [40, 45, 46]], +[42, ["string", "r:"], 571, 565, [39, null]], +[43, "box", 625, 607, [40, 44, null]], +[44, ["string", "row"], 680, 607, [43, null]], +[45, ["string", " c:"], 679, 649, [41, null]], +[46, "box", 679, 691, [41, 47, null]], +[47, ["string", "column"], 734, 691, [46, null]], +[48, "stack", 449, 729, [28, 49, 51]], +[49, "box", 507, 729, [48, 50, null]], +[50, ["string", "program"], 562, 729, [49, null]], +[51, ["storein", 0], 449, 771, [48, 52, 54, null]], +[52, ["string", "column"], 517, 771, [51, null]], +[53, ["number", 1], 571, 855, [54, null]], +[54, ["plus2", 0], 517, 813, [51, 55, 53]], +[55, "box", 571, 813, [54, 56, null]], +[56, ["string", "column"], 626, 813, [55, null]], +[57, ["storein", 0], 431, 915, [36, 58, 60, null]], +[58, ["string", "row"], 499, 915, [57, null]], +[59, ["number", 1], 553, 999, [60, null]], +[60, ["plus2", 0], 499, 957, [57, 61, 59]], +[61, "box", 553, 957, [60, 62, null]], +[62, ["string", "row"], 608, 957, [61, null]], +[63, ["string", "doit"], 783, 413, [86, null]], +[64, ["storein", 0], 725, 455, [86, 66, 65, null]], +[65, ["product2", 0], 793, 497, [64, 68, 70]], +[66, "box", 793, 455, [64, 67, null]], +[67, ["string", "index"], 848, 455, [66, null]], +[68, "box", 847, 497, [65, 69, null]], +[69, ["string", "row"], 902, 497, [68, null]], +[70, "box", 847, 539, [65, 71, null]], +[71, ["string", "column"], 902, 539, [70, null]], +[72, ["string", "printit"], 237, 525, [87, null]], +[73, "print", 179, 567, [87, 77, 75]], +[74, "print", 179, 651, [75, 79, 82]], +[75, "wait", 179, 609, [73, 76, 74]], +[76, ["number", 0], 237, 609, [75, null]], +[77, "box", 237, 567, [73, 78, null]], +[78, ["string", "index"], 292, 567, [77, null]], +[79, "box", 237, 651, [74, 80, null]], +[80, "box", 292, 651, [79, 81, null]], +[81, ["string", "index"], 347, 651, [80, null]], +[82, "wait", 179, 693, [74, 83, null]], +[83, ["number", 0], 237, 693, [82, null]], +[84, "hat", 413, 175, [null, 22, 23]], +[85, "hat", 713, 181, [null, 11, 12]], +[86, "hat", 725, 401, [null, 63, 64]], +[87, "hat", 179, 513, [null, 72, 73]]] diff --git a/samples/math-galton-path.ta b/samples/math-galton-path.ta index 1a70651..7985518 100644 --- a/samples/math-galton-path.ta +++ b/samples/math-galton-path.ta @@ -1,60 +1,63 @@ -[[0, ["start", 1.5], 21, 19, [null, 27]], -[1, ["setxy2", 0], 483, 76, [4, 2, 3, 11]], -[2, ["number", 0], 529, 76, [1, null]], -[3, "toppos", 529, 108, [1, null]], -[4, "penup", 483, 44, [22, 1]], -[5, "repeat", 483, 171, [11, 6, 8, 7]], -[6, ["number", 70], 523, 171, [5, null]], -[7, ["vspace", 80], 483, 230, [5, 35]], -[8, ["setxy2", 80], 533, 216, [5, 16, 14, null]], -[9, ["number", -0.5], 702, 280, [23, null]], -[10, ["number", -10], 620, 400, [14, null]], -[11, "pendown", 483, 139, [1, 5]], -[12, "setpensize", 21, 83, [27, 13, 52]], -[13, ["number", 1], 103, 83, [12, null]], -[14, ["plus2", 0], 579, 368, [8, 15, 10]], -[15, "ycor", 620, 368, [14, null]], -[16, ["plus2", 0], 579, 216, [8, 17, 24]], -[17, "xcor", 620, 216, [16, null]], -[18, ["random", 0], 702, 312, [23, 19, 20, null]], -[19, ["number", 0], 777, 312, [18, null]], -[20, ["number", 1], 777, 344, [18, null]], -[21, "stack1", 98, 437, [26, null]], -[22, "hat1", 483, 12, [null, 4]], -[23, ["plus2", 0], 661, 280, [24, 9, 18]], -[24, ["product2", 0], 620, 248, [16, 25, 23]], -[25, ["number", 20], 661, 248, [24, null]], -[26, "forever", 21, 423, [53, 21, null]], -[27, "clean", 21, 51, [0, 12]], -[28, ["number", -400], 67, 147, [50, null]], -[29, "repeat", 21, 210, [50, 30, 32, 31]], -[30, ["number", 80], 61, 210, [29, null]], -[31, ["vspace", 60], 21, 269, [29, 53]], -[32, ["storein", 0], 71, 255, [29, 55, 33, 56]], -[33, ["number", 0], 148, 287, [32, null]], -[34, ["storein", 0], 231, 47, [36, 43, 38, 41]], -[35, "stack2", 483, 382, [7, null]], -[36, "hat2", 231, 15, [null, 34]], -[37, "box", 349, 79, [38, 44, null]], -[38, ["plus2", 0], 308, 79, [34, 37, 39]], -[39, ["number", 1], 349, 111, [38, null]], -[40, "forward", 231, 174, [46, 42, 48]], -[41, ["vspace", 0], 231, 110, [34, 46]], -[42, "box", 294, 174, [40, 45, null]], -[43, "xcor", 308, 47, [34, null]], -[44, "xcor", 394, 79, [37, null]], -[45, "xcor", 339, 174, [42, null]], -[46, "setpensize", 231, 142, [41, 47, 40]], -[47, ["number", 18], 313, 142, [46, null]], -[48, "setpensize", 231, 206, [40, 49, null]], -[49, ["number", 1], 313, 206, [48, null]], -[50, ["setxy2", 0], 21, 147, [52, 28, 51, 29]], -[51, ["number", 0], 67, 179, [50, null]], -[52, "penup", 21, 115, [12, 50]], -[53, "pendown", 21, 391, [31, 26]], -[54, ["number", 10], 158, 350, [59, null]], -[55, "xcor", 148, 255, [32, null]], -[56, ["setxy2", 20], 71, 318, [32, 59, 57, null]], -[57, ["number", 0], 117, 380, [56, null]], -[58, "xcor", 158, 318, [59, null]], -[59, ["plus2", 0], 117, 318, [56, 58, 54]]] +[[0, ["start", 1.5], 26, 176, [null, 24]], +[1, ["setxy2", 0], 502, 244, [4, 2, 3, 10]], +[2, ["number", 0], 546, 244, [1, null]], +[3, "toppos", 546, 276, [1, null]], +[4, "penup", 502, 212, [54, 1]], +[5, ["repeat", 101], 502, 339, [10, 6, 7, 62]], +[6, ["number", 70], 551, 339, [5, null]], +[7, ["setxy2", 80], 516, 371, [5, 15, 13, null]], +[8, ["number", -0.5], 683, 435, [20, null]], +[9, ["number", -10], 601, 555, [13, null]], +[10, "pendown", 502, 307, [1, 5]], +[11, "setpensize", 26, 243, [24, 12, 46]], +[12, ["number", 1], 108, 243, [11, null]], +[13, ["plus2", 0], 560, 523, [7, 14, 9]], +[14, "ycor", 601, 523, [13, null]], +[15, ["plus2", 0], 560, 371, [7, 16, 21]], +[16, "xcor", 601, 371, [15, null]], +[17, ["random", 0], 683, 467, [20, 18, 19, null]], +[18, ["number", 0], 750, 467, [17, null]], +[19, ["number", 1], 750, 499, [17, null]], +[20, ["plus2", 0], 642, 435, [21, 8, 17]], +[21, ["product2", 0], 601, 403, [15, 22, 20]], +[22, ["number", 20], 642, 403, [21, null]], +[23, ["forever", 0], 26, 603, [47, 56, null]], +[24, "clean", 26, 211, [0, 11]], +[25, ["number", -400], 70, 307, [44, null]], +[26, ["repeat", 83], 26, 370, [44, 27, 28, 47]], +[27, ["number", 80], 75, 370, [26, null]], +[28, ["storein", 0], 40, 402, [26, 49, 29, 50]], +[29, ["number", 0], 95, 434, [28, null]], +[30, ["storein", 0], 243, 219, [58, 37, 32, 35]], +[31, "box", 339, 251, [32, 38, null]], +[32, ["plus2", 0], 298, 251, [30, 31, 33]], +[33, ["number", 1], 339, 283, [32, null]], +[34, "forward", 243, 346, [40, 36, 42]], +[35, ["vspace", 0], 243, 282, [30, 40]], +[36, "box", 297, 346, [34, 39, null]], +[37, "xcor", 298, 219, [30, null]], +[38, "xcor", 380, 251, [31, null]], +[39, "xcor", 338, 346, [36, null]], +[40, "setpensize", 243, 314, [35, 41, 34]], +[41, ["number", 18], 325, 314, [40, null]], +[42, "setpensize", 243, 378, [34, 43, null]], +[43, ["number", 1], 325, 378, [42, null]], +[44, ["setxy2", 0], 26, 307, [46, 25, 45, 26]], +[45, ["number", 0], 70, 339, [44, null]], +[46, "penup", 26, 275, [11, 44]], +[47, "pendown", 26, 571, [26, 23]], +[48, ["number", 10], 125, 497, [53, null]], +[49, "xcor", 95, 402, [28, null]], +[50, ["setxy2", 20], 40, 465, [28, 53, 51, null]], +[51, ["number", 0], 84, 527, [50, null]], +[52, "xcor", 125, 465, [53, null]], +[53, ["plus2", 0], 84, 465, [50, 52, 48]], +[54, "hat", 502, 171, [null, 55, 4]], +[55, ["string", "action"], 548, 180, [54, null]], +[56, "stack", 40, 629, [23, 57, null]], +[57, ["string", "action"], 86, 629, [56, null]], +[58, "hat", 243, 178, [null, 59, 30]], +[59, ["string", "action_2"], 289, 187, [58, null]], +[60, "stack", 502, 599, [62, 61, null]], +[61, ["string", "action_2"], 548, 599, [60, null]], +[62, ["vspace", 0], 502, 567, [5, 60]]] diff --git a/samples/math-geometry.ta b/samples/math-geometry.ta index 63d2338..57532a9 100644 --- a/samples/math-geometry.ta +++ b/samples/math-geometry.ta @@ -1,59 +1,73 @@ -[[0, ["start", 2.0], 34, 7, [null, 57]], -[1, "forward", 638, 360, [7, 2, 3]], -[2, ["number", 100], 712, 360, [1, null]], -[3, "right", 638, 402, [1, 6, null]], -[4, ["number", 360], 764, 402, [6, null]], -[5, "box1", 788, 444, [6, null]], -[6, ["division2", 0], 710, 402, [3, 4, 5]], -[7, "repeat", 573, 300, [38, 8, 1, null]], -[8, "box1", 624, 300, [7, null]], -[9, "repeat", 32, 445, [12, 10, 24, null]], -[10, ["number", 10], 83, 445, [9, null]], -[11, ["vspace", 0], 97, 589, [16, 14]], -[12, "storeinbox1", 32, 403, [48, 13, 9]], -[13, ["number", 12], 177, 403, [12, null]], -[14, "startfill", 97, 631, [11, 40]], -[15, "stopfill", 97, 715, [40, 26]], -[16, "setgray", 97, 547, [24, 18, 11]], -[17, ["number", 300], 274, 547, [18, null]], -[18, ["division2", 0], 220, 547, [16, 17, 19]], -[19, "box1", 298, 589, [18, null]], -[20, "storeinbox1", 97, 841, [43, 23, null]], -[21, ["number", 1], 320, 883, [23, null]], -[22, "box1", 296, 841, [23, null]], -[23, ["minus2", 0], 242, 841, [20, 22, 21]], -[24, "setcolor", 97, 505, [9, 25, 16]], -[25, ["number", 0], 178, 505, [24, null]], -[26, "setcolor", 97, 757, [15, 27, 43]], -[27, "black", 178, 757, [26, null]], -[28, "repeat", 567, 58, [36, 29, 30, null]], -[29, "box1", 618, 58, [28, null]], -[30, "forward", 632, 118, [28, 31, 35]], -[31, ["number", 100], 706, 118, [30, null]], -[32, ["division2", 0], 711, 160, [35, 33, 34]], -[33, ["number", 360], 765, 160, [32, null]], -[34, "box1", 789, 202, [32, null]], -[35, "left", 632, 160, [30, 32, null]], -[36, "hat", 567, 8, [null, 37, 28]], -[37, ["number", 2], 626, 16, [36, null]], -[38, "hat", 573, 250, [null, 39, 7]], -[39, ["number", 1], 632, 258, [38, null]], -[40, "stack", 97, 673, [14, 44, 15]], -[41, "storeinbox2", 34, 175, [54, 42, 46]], -[42, ["number", 1], 179, 175, [41, null]], -[43, "stack", 97, 799, [26, 45, 20]], -[44, "box2", 156, 673, [40, null]], -[45, "box2", 156, 799, [43, null]], -[46, "repeat", 34, 217, [41, 47, 53, null]], -[47, ["number", 2], 85, 217, [46, null]], -[48, "hat1", 32, 361, [null, 12]], -[49, "storeinbox2", 99, 319, [53, 52, null]], -[50, ["number", 1], 298, 361, [52, null]], -[51, "box2", 298, 319, [52, null]], -[52, ["plus2", 0], 244, 319, [49, 51, 50]], -[53, "stack1", 99, 277, [46, 49]], -[54, ["fillscreen", 0], 34, 91, [57, 55, 56, 41]], -[55, ["number", 60], 164, 91, [54, null]], -[56, ["number", 80], 164, 133, [54, null]], -[57, "setgray", 34, 49, [0, 58, 54]], -[58, ["number", 50], 157, 49, [57, null]]] +[[0, ["start", 2.0], 788, 178, [null, 40]], +[1, "forward", 437, 523, [6, 2, 3]], +[2, ["number", 100], 508, 523, [1, null]], +[3, "right", 437, 565, [1, 5, null]], +[4, ["number", 360], 549, 565, [5, null]], +[5, ["division2", 0], 495, 565, [3, 4, 65]], +[6, ["repeat", 21], 419, 481, [28, 63, 1, null]], +[7, ["repeat", 168], 29, 324, [46, 8, 16, null]], +[8, ["number", 10], 88, 324, [7, null]], +[9, "startfill", 47, 450, [11, 30]], +[10, "stopfill", 47, 534, [30, 18]], +[11, "setgray", 47, 408, [16, 13, 9]], +[12, ["number", 300], 174, 408, [13, null]], +[13, ["division2", 0], 120, 408, [11, 12, 55]], +[14, ["number", 1], 193, 744, [15, null]], +[15, ["minus2", 0], 115, 702, [53, 57, 14]], +[16, "setcolor", 47, 366, [7, 17, 11]], +[17, ["number", 0], 124, 366, [16, null]], +[18, "setcolor", 47, 576, [10, 19, 32]], +[19, "black", 124, 576, [18, null]], +[20, ["repeat", 21], 418, 240, [26, 59, 21, null]], +[21, "forward", 436, 282, [20, 22, 25]], +[22, ["number", 100], 507, 282, [21, null]], +[23, ["division2", 0], 494, 324, [25, 24, 61]], +[24, ["number", 360], 548, 324, [23, null]], +[25, "left", 436, 324, [21, 23, null]], +[26, "hat", 418, 186, [null, 27, 20]], +[27, ["number", 2], 476, 198, [26, null]], +[28, "hat", 419, 427, [null, 29, 6]], +[29, ["number", 1], 477, 439, [28, null]], +[30, "stack", 47, 492, [9, 67, 10]], +[31, ["number", 1.0], 856, 392, [49, null]], +[32, "stack", 47, 618, [18, 71, 53]], +[33, ["repeat", 42], 788, 434, [49, 34, 44, null]], +[34, ["number", 2], 847, 434, [33, null]], +[35, ["number", 1], 928, 602, [36, null]], +[36, ["plus2", 0], 874, 560, [51, 69, 35]], +[37, ["fillscreen", 0], 788, 266, [40, 38, 39, 49]], +[38, ["number", 60], 870, 266, [37, null]], +[39, ["number", 80], 870, 308, [37, null]], +[40, "setgray", 788, 224, [0, 41, 37]], +[41, ["number", 50], 861, 224, [40, null]], +[42, "hat", 29, 186, [null, 43, 46]], +[43, ["string", "action"], 87, 198, [42, null]], +[44, "stack", 806, 476, [33, 45, 51]], +[45, ["string", "action"], 864, 476, [44, null]], +[46, ["storein", 0], 29, 240, [42, 47, 48, 7]], +[47, ["string", "box 1"], 97, 240, [46, null]], +[48, ["number", 12.0], 97, 282, [46, null]], +[49, ["storein", 0], 788, 350, [37, 50, 31, 33]], +[50, ["string", "box 2"], 856, 350, [49, null]], +[51, ["storein", 0], 806, 518, [44, 52, 36, null]], +[52, ["string", "box 2"], 874, 518, [51, null]], +[53, ["storein", 0], 47, 660, [32, 54, 15, null]], +[54, ["string", "box 1"], 115, 660, [53, null]], +[55, "box", 198, 450, [13, 56, null]], +[56, ["string", "box 1"], 253, 450, [55, null]], +[57, "box", 169, 702, [15, 58, null]], +[58, ["string", "box 1"], 224, 702, [57, null]], +[59, "box", 477, 240, [20, 60, null]], +[60, ["string", "box 1"], 532, 240, [59, null]], +[61, "box", 572, 366, [23, 62, null]], +[62, ["string", "box 1"], 627, 366, [61, null]], +[63, "box", 478, 481, [6, 64, null]], +[64, ["string", "box 1"], 533, 481, [63, null]], +[65, "box", 573, 607, [5, 66, null]], +[66, ["string", "box 1"], 628, 607, [65, null]], +[67, "box", 105, 492, [30, 68, null]], +[68, ["string", "box 2"], 160, 492, [67, null]], +[69, "box", 928, 560, [36, 70, null]], +[70, ["string", "box 2"], 983, 560, [69, null]], +[71, "box", 105, 618, [32, 72, null]], +[72, ["string", "box 2"], 160, 618, [71, null]]] diff --git a/samples/math-numeros.ta b/samples/math-numeros.ta index 6965106..98f5230 100644 --- a/samples/math-numeros.ta +++ b/samples/math-numeros.ta @@ -1,50 +1,68 @@ -[[0, ["start", 2.0], 100, 0, [null, 45]], -[1, "until", 420, 244, [9, 2, 5, null]], -[2, ["greater2", 0], 458, 210, [1, 3, 4, null]], -[3, "keyboard", 504, 210, [2, null]], -[4, ["number", 0], 528, 252, [2, null]], -[5, "wait", 472, 312, [1, 6, 7]], -[6, ["number", 0.1], 530, 312, [5, null]], -[7, "kbinput", 472, 354, [5, null]], -[8, "hat1", 420, 160, [null, 9]], -[9, ["vspace", 0], 420, 202, [8, 1]], -[10, "forever", 100, 126, [18, 11, null]], -[11, "stack1", 161, 144, [10, 17]], -[12, ["equal2", 0], 199, 194, [15, 14, 13, null]], -[13, ["number", 32], 245, 236, [12, null]], -[14, "keyboard", 245, 194, [12, null]], -[15, "ifelse", 161, 228, [17, 12, 16, 21, null]], -[16, ["vspace", 20], 213, 296, [15, 38]], -[17, ["vspace", 0], 161, 186, [11, 15]], -[18, "storeinbox1", 100, 84, [45, 19, 10]], -[19, ["number", 0], 218, 84, [18, null]], -[20, "hat2", 360, 0, [null, 24]], -[21, "stack2", 265, 296, [15, null]], -[22, "storeinbox1", 213, 674, [41, 23, null]], -[23, ["number", 0], 331, 674, [22, null]], -[24, "storeinbox1", 360, 42, [20, 28, null]], -[25, ["number", 10], 586, 84, [27, null]], -[26, "box1", 586, 126, [27, null]], -[27, ["product2", 0], 532, 84, [28, 25, 26]], -[28, ["plus2", 0], 478, 42, [24, 49, 27]], -[29, "box1", 271, 632, [41, null]], -[30, ["vspace", 0], 213, 506, [40, 42]], -[31, ["less2", 0], 251, 344, [38, 32, 33, null]], -[32, "box1", 297, 344, [31, null]], -[33, ["number", 11], 321, 386, [31, null]], -[34, "setcolor", 265, 488, [39, 35, null]], -[35, "red", 342, 488, [34, null]], -[36, "setcolor", 317, 446, [38, 37, null]], -[37, "blue", 394, 446, [36, null]], -[38, "ifelse", 213, 378, [16, 31, 39, 36, 40]], -[39, ["vspace", 0], 265, 446, [38, 34]], -[40, ["vspace", 0], 213, 464, [38, 30]], -[41, "show", 213, 632, [42, 29, 22]], -[42, ["fillscreen", 0], 213, 548, [30, 43, 44, 41]], -[43, ["number", 60], 295, 548, [42, null]], -[44, ["number", 80], 295, 590, [42, null]], -[45, "setscale", 100, 42, [0, 46, 18]], -[46, ["number", 330], 177, 42, [45, null]], -[47, "keyboard", 640, 42, [48, null]], -[48, "chr", 586, 42, [49, 47]], -[49, "int", 532, 42, [28, 48]]] +[[0, ["start", 2.0], 48, 190, [null, 30]], +[1, ["until", 21], 325, 284, [8, 2, 5, null]], +[2, ["greater2", 0], 381, 250, [1, 3, 4, null]], +[3, "keyboard", 427, 250, [2, null]], +[4, ["number", 0], 451, 292, [2, null]], +[5, "wait", 343, 350, [1, 6, 7]], +[6, ["number", 0.1], 401, 350, [5, null]], +[7, "kbinput", 343, 392, [5, null]], +[8, ["vspace", 0], 325, 242, [35, 1]], +[9, ["forever", 312], 48, 362, [43, 39, null]], +[10, ["equal2", 0], 122, 446, [13, 12, 11, null]], +[11, ["number", 32], 168, 488, [10, null]], +[12, "keyboard", 168, 446, [10, null]], +[13, ["ifelse", [198, 0]], +66, 480, [14, 10, 25, 41, null]], +[14, ["vspace", 0], 66, 438, [39, 13]], +[15, ["number", 10], 615, 779, [16, null]], +[16, ["product2", 0], 561, 779, [17, 15, 48]], +[17, ["plus2", 0], 507, 737, [46, 34, 16]], +[18, ["less2", 0], 140, 554, [24, 53, 19, null]], +[19, ["number", 11], 210, 596, [18, null]], +[20, "setcolor", 102, 654, [24, 21, null]], +[21, "red", 179, 654, [20, null]], +[22, "setcolor", 102, 714, [24, 23, null]], +[23, "blue", 179, 714, [22, null]], +[24, ["ifelse", [0, 0]], +84, 588, [25, 18, 20, 22, 27]], +[25, ["vspace", 0], 84, 546, [13, 24]], +[26, "show", 84, 858, [27, 55, 50]], +[27, ["fillscreen", 0], 84, 774, [24, 28, 29, 26]], +[28, ["number", 60], 166, 774, [27, null]], +[29, ["number", 80], 166, 816, [27, null]], +[30, "setscale", 48, 236, [0, 31, 43]], +[31, ["number", 330], 125, 236, [30, null]], +[32, "keyboard", 669, 737, [33, null]], +[33, "chr", 615, 737, [34, 32]], +[34, "int", 561, 737, [17, 33]], +[35, "hat", 325, 188, [null, 36, 8]], +[36, ["string", "action"], 383, 200, [35, null]], +[37, "hat", 421, 453, [null, 38, 61]], +[38, ["string", "action_2"], 479, 465, [37, null]], +[39, "stack", 66, 396, [9, 40, 14]], +[40, ["string", "action"], 124, 396, [39, null]], +[41, "stack", 84, 1002, [13, 42, null]], +[42, ["string", "action_2"], 142, 1002, [41, null]], +[43, ["storein", 0], 48, 278, [30, 44, 45, 9]], +[44, ["string", "box"], 116, 278, [43, null]], +[45, ["number", 0.0], 116, 320, [43, null]], +[46, ["storein", 0], 439, 695, [57, 47, 17, null]], +[47, ["string", "box"], 507, 695, [46, null]], +[48, "box", 615, 821, [16, 49, null]], +[49, ["string", "box"], 670, 821, [48, null]], +[50, ["storein", 0], 84, 900, [26, 51, 52, null]], +[51, ["string", "box"], 152, 900, [50, null]], +[52, ["number", 0.0], 152, 942, [50, null]], +[53, "box", 186, 554, [18, 54, null]], +[54, ["string", "box"], 241, 554, [53, null]], +[55, "box", 142, 858, [26, 56, null]], +[56, ["string", "box"], 197, 858, [55, null]], +[57, ["if", 21], 421, 629, [61, 59, 46, null]], +[58, ["less2", 0], 523, 587, [59, 63, 65, null]], +[59, ["and2", 0], 477, 547, [57, 60, 58]], +[60, ["greater2", 0], 523, 505, [59, 62, 64, null]], +[61, ["vspace", 40], 421, 507, [37, 57]], +[62, "keyboard", 569, 505, [60, null]], +[63, "keyboard", 569, 587, [58, null]], +[64, ["number", 47.0], 593, 547, [60, null]], +[65, ["number", 58.0], 593, 629, [58, null]]] diff --git a/samples/math-sierpquad.ta b/samples/math-sierpquad.ta index f78fbc3..424b178 100644 --- a/samples/math-sierpquad.ta +++ b/samples/math-sierpquad.ta @@ -1 +1,78 @@ -[[0, "hat1", 490, 175, [null, 1]], [1, "pendown", 490, 217, [0, 2]], [2, "setcolor", 490, 251, [1, 44, 55]], [3, "repeat", 490, 335, [55, 4, 5, null]], [4, ["number", 4], 541, 335, [3, null]], [5, "setcolor", 555, 395, [3, 7, 57]], [6, "color", 686, 395, [7, null]], [7, ["minus2", 0], 632, 395, [5, 6, 8]], [8, ["number", 2], 710, 437, [7, null]], [9, "ifelse", 774, 219, [56, 10, 12, 21, null]], [10, ["greater2", 0], 840, 185, [9, 11, 25, null]], [11, "box1", 886, 185, [10, null]], [12, ["vspace", 20.0], 854, 287, [9, 13]], [13, "storeinbox1", 854, 369, [12, 38, 14]], [14, "stack1", 854, 411, [13, 15]], [15, "penup", 854, 445, [14, 16]], [16, "forward", 854, 479, [15, 17, 18]], [17, "box1", 925, 479, [16, null]], [18, "stack1", 854, 521, [16, 19]], [19, "penup", 854, 555, [18, 20]], [20, "forward", 854, 589, [19, 41, 47]], [21, "forward", 906, 287, [9, 22, 23]], [22, "box1", 977, 287, [21, null]], [23, "right", 906, 329, [21, 24, null]], [24, ["number", 90], 964, 329, [23, null]], [25, ["number", 10], 886, 227, [10, null]], [26, "clean", 237, 217, [37, 27]], [27, "setpensize", 237, 251, [26, 28, 58]], [28, ["number", 1], 339, 251, [27, null]], [29, ["setxy2", 0], 237, 327, [58, 31, 30, 59]], [30, ["number", -365], 295, 369, [29, null]], [31, ["number", 365], 295, 327, [29, null]], [32, "left", 237, 445, [59, 33, 34]], [33, ["number", 90], 295, 445, [32, null]], [34, "storeinbox1", 237, 487, [32, 35, 36]], [35, ["number", 729], 355, 487, [34, null]], [36, "stack1", 237, 529, [34, null]], [37, ["start", 2.0], 237, 175, [null, 26]], [38, ["division2", 0], 972, 369, [13, 39, 40]], [39, "box1", 1026, 369, [38, null]], [40, ["number", 3], 1050, 411, [38, null]], [41, ["product2", 0], 925, 589, [20, 42, 43]], [42, "box1", 979, 589, [41, null]], [43, ["number", 2], 979, 631, [41, null]], [44, ["plus2", 0], 567, 251, [2, 45, 46]], [45, "color", 621, 251, [44, null]], [46, ["number", 8], 621, 293, [44, null]], [47, ["vspace", 0], 854, 631, [20, 48]], [48, "storeinbox1", 854, 673, [47, 49, 54]], [49, ["product2", 0], 972, 673, [48, 50, 51]], [50, "box1", 1026, 673, [49, null]], [51, ["number", 3], 1026, 715, [49, null]], [52, "right", 854, 757, [54, 53, null]], [53, ["number", 90], 912, 757, [52, null]], [54, ["vspace", 0], 854, 715, [48, 52]], [55, ["vspace", 0], 490, 293, [2, 3]], [56, "hat2", 774, 177, [null, 9]], [57, "stack2", 555, 437, [5, null]], [58, "penup", 237, 293, [27, 29]], [59, "pendown", 237, 411, [29, 32]]] \ No newline at end of file +[[0, "pendown", 489, 234, [45, 1]], +[1, "setcolor", 489, 276, [0, 33, 42]], +[2, ["repeat", 42], 489, 360, [42, 3, 4, null]], +[3, ["number", 4], 548, 360, [2, null]], +[4, "setcolor", 507, 402, [2, 6, 56]], +[5, "color", 638, 402, [6, null]], +[6, ["minus2", 0], 584, 402, [4, 5, 7]], +[7, ["number", 2], 662, 444, [6, null]], +[8, ["ifelse", [273, 21]], +805, 276, [10, 9, 61, 15, null]], +[9, ["greater2", 0], 861, 242, [8, 65, 18, null]], +[10, ["vspace", 0], 805, 234, [47, 8]], +[11, "penup", 823, 510, [53, 12]], +[12, "forward", 823, 552, [11, 69, 51]], +[13, "penup", 823, 636, [51, 14]], +[14, "forward", 823, 678, [13, 31, 36]], +[15, "forward", 823, 948, [8, 75, 16]], +[16, "right", 823, 990, [15, 17, null]], +[17, ["number", 90], 881, 990, [16, null]], +[18, ["number", 10], 931, 284, [9, null]], +[19, "clean", 237, 221, [28, 20]], +[20, "setpensize", 237, 263, [19, 21, 43]], +[21, ["number", 1], 339, 263, [20, null]], +[22, ["setxy2", 0], 237, 347, [43, 24, 23, 44]], +[23, ["number", -365], 295, 389, [22, null]], +[24, ["number", 365], 295, 347, [22, null]], +[25, "left", 237, 473, [44, 26, 59]], +[26, ["number", 90], 295, 473, [25, null]], +[27, ["number", 729.0], 305, 557, [59, null]], +[28, ["start", 2.0], 237, 175, [null, 19]], +[29, ["division2", 0], 891, 384, [61, 67, 30]], +[30, ["number", 3], 969, 426, [29, null]], +[31, ["product2", 0], 894, 678, [14, 71, 32]], +[32, ["number", 2], 948, 720, [31, null]], +[33, ["plus2", 0], 566, 276, [1, 34, 35]], +[34, "color", 620, 276, [33, null]], +[35, ["number", 8], 620, 318, [33, null]], +[36, ["vspace", 0], 823, 720, [14, 63]], +[37, ["product2", 0], 891, 804, [63, 73, 38]], +[38, ["number", 3], 945, 846, [37, null]], +[39, "right", 823, 888, [41, 40, null]], +[40, ["number", 90], 881, 888, [39, null]], +[41, ["vspace", 0], 823, 846, [63, 39]], +[42, ["vspace", 0], 489, 318, [1, 2]], +[43, "penup", 237, 305, [20, 22]], +[44, "pendown", 237, 431, [22, 25]], +[45, "hat", 489, 180, [null, 46, 0]], +[46, ["string", "action"], 547, 192, [45, null]], +[47, "hat", 805, 180, [null, 48, 10]], +[48, ["string", "action_2"], 863, 192, [47, null]], +[49, "stack", 237, 599, [59, 50, null]], +[50, ["string", "action"], 295, 599, [49, null]], +[51, "stack", 823, 594, [12, 52, 13]], +[52, ["string", "action"], 881, 594, [51, null]], +[53, "stack", 823, 468, [55, 54, 11]], +[54, ["string", "action"], 881, 468, [53, null]], +[55, ["vspace", 0], 823, 426, [61, 53]], +[56, ["vspace", 0], 507, 444, [4, 57]], +[57, "stack", 507, 486, [56, 58, null]], +[58, ["string", "action_2"], 565, 486, [57, null]], +[59, ["storein", 0], 237, 515, [25, 60, 27, 49]], +[60, ["string", "my box"], 305, 515, [59, null]], +[61, ["storein", 0], 823, 342, [8, 62, 29, 55]], +[62, ["string", "my box"], 891, 342, [61, null]], +[63, ["storein", 0], 823, 762, [36, 64, 37, 41]], +[64, ["string", "my box"], 891, 762, [63, null]], +[65, "box", 907, 242, [9, 66, null]], +[66, ["string", "my box"], 962, 242, [65, null]], +[67, "box", 945, 384, [29, 68, null]], +[68, ["string", "my box"], 1000, 384, [67, null]], +[69, "box", 894, 552, [12, 70, null]], +[70, ["string", "my box"], 949, 552, [69, null]], +[71, "box", 948, 678, [31, 72, null]], +[72, ["string", "my box"], 1003, 678, [71, null]], +[73, "box", 945, 804, [37, 74, null]], +[74, ["string", "my box"], 1000, 804, [73, null]], +[75, "box", 894, 948, [15, 76, null]], +[76, ["string", "my box"], 949, 948, [75, null]]] diff --git a/samples/math-sierpquad2.ta b/samples/math-sierpquad2.ta index 15d97c1..a86d1e5 100644 --- a/samples/math-sierpquad2.ta +++ b/samples/math-sierpquad2.ta @@ -1 +1,96 @@ -[[0, ["start", 2.0], 221, 174, [null, 1]], [1, "clean", 221, 216, [0, 2]], [2, "setpensize", 221, 250, [1, 3, 78]], [3, ["number", 1], 323, 250, [2, null]], [4, ["setxy2", 0], 221, 326, [78, 5, 6, 79]], [5, ["number", 365], 279, 326, [4, null]], [6, ["number", -365], 279, 368, [4, null]], [7, "left", 221, 444, [79, 8, 9]], [8, ["number", 90], 279, 444, [7, null]], [9, "storeinbox1", 221, 486, [7, 10, 11]], [10, ["number", 729], 339, 486, [9, null]], [11, "stack1", 221, 528, [9, 12]], [12, "pendown", 221, 562, [11, 13]], [13, "repeat", 221, 596, [12, 14, 15, null]], [14, ["number", 4], 272, 596, [13, null]], [15, "forward", 286, 656, [13, 16, 17]], [16, "box1", 357, 656, [15, null]], [17, "right", 286, 698, [15, 18, null]], [18, ["number", 90], 344, 698, [17, null]], [19, "hat1", 500, 175, [null, 20]], [20, "penup", 500, 217, [19, 21]], [21, "setcolor", 500, 251, [20, 65, 74]], [22, "storeinbox1", 500, 335, [74, 68, 73]], [23, "repeat", 500, 419, [73, 24, 25, 71]], [24, ["number", 4], 551, 419, [23, null]], [25, "setcolor", 565, 479, [23, 27, 75]], [26, "color", 696, 479, [27, null]], [27, ["minus2", 0], 642, 479, [25, 26, 28]], [28, ["number", 2], 720, 521, [27, null]], [29, "if", 565, 603, [75, 30, 33, 76]], [30, ["greater2", 0], 603, 569, [29, 31, 32, null]], [31, "box1", 649, 569, [30, null]], [32, ["number", 1], 649, 611, [30, null]], [33, "stack2", 617, 671, [29, null]], [34, "forward", 565, 731, [76, 35, 77]], [35, ["product2", 0], 636, 731, [34, 36, 37]], [36, "box1", 690, 731, [35, null]], [37, ["number", 3], 690, 773, [35, null]], [38, "right", 565, 815, [77, 39, null]], [39, ["number", 90], 623, 815, [38, null]], [40, "storeinbox1", 500, 859, [71, 41, null]], [41, ["product2", 0], 618, 859, [40, 42, 43]], [42, "box1", 672, 859, [41, null]], [43, ["number", 3], 672, 901, [41, null]], [44, "hat2", 863, 177, [null, 45]], [45, "stack1", 863, 219, [44, 46]], [46, "forward", 863, 253, [45, 47, 48]], [47, "box1", 934, 253, [46, null]], [48, "stack1", 863, 295, [46, 49]], [49, "repeat", 863, 329, [48, 50, 51, 72]], [50, ["number", 2], 914, 329, [49, null]], [51, "forward", 928, 389, [49, 52, 53]], [52, "box1", 999, 389, [51, null]], [53, "right", 928, 431, [51, 54, null]], [54, ["number", 90], 986, 431, [53, null]], [55, "pendown", 863, 489, [72, 56]], [56, "forward", 863, 523, [55, 57, 58]], [57, "box1", 934, 523, [56, null]], [58, "penup", 863, 565, [56, 59]], [59, "repeat", 863, 599, [58, 60, 61, null]], [60, ["number", 2], 914, 599, [59, null]], [61, "forward", 928, 659, [59, 62, 63]], [62, "box1", 999, 659, [61, null]], [63, "right", 928, 701, [61, 64, null]], [64, ["number", 90], 986, 701, [63, null]], [65, ["plus2", 0], 577, 251, [21, 66, 67]], [66, "color", 631, 251, [65, null]], [67, ["number", 8], 631, 293, [65, null]], [68, ["division2", 0], 618, 335, [22, 69, 70]], [69, "box1", 672, 335, [68, null]], [70, ["number", 3], 696, 377, [68, null]], [71, ["vspace", 160.0], 500, 497, [23, 40]], [72, ["vspace", 20.0], 863, 407, [49, 55]], [73, ["vspace", 0], 500, 377, [22, 23]], [74, ["vspace", 0], 500, 293, [21, 22]], [75, ["vspace", 20.0], 565, 521, [25, 29]], [76, ["vspace", 0], 565, 689, [29, 34]], [77, ["vspace", 0], 565, 773, [34, 38]], [78, "penup", 221, 292, [2, 4]], [79, "pendown", 221, 410, [4, 7]]] \ No newline at end of file +[[0, ["start", 2.0], 221, 174, [null, 1]], +[1, "clean", 221, 220, [0, 2]], +[2, "setpensize", 221, 262, [1, 3, 58]], +[3, ["number", 1], 323, 262, [2, null]], +[4, ["setxy2", 0], 221, 346, [58, 5, 6, 59]], +[5, ["number", 365], 279, 346, [4, null]], +[6, ["number", -365], 279, 388, [4, null]], +[7, "left", 221, 472, [59, 8, 74]], +[8, ["number", 90], 279, 472, [7, null]], +[9, ["number", 729.0], 289, 556, [74, null]], +[10, "pendown", 221, 640, [68, 11]], +[11, ["repeat", 21], 221, 682, [10, 12, 13, null]], +[12, ["number", 4], 280, 682, [11, null]], +[13, "forward", 239, 724, [11, 90, 14]], +[14, "right", 239, 766, [13, 15, null]], +[15, ["number", 90], 297, 766, [14, null]], +[16, "penup", 477, 232, [60, 17]], +[17, "setcolor", 477, 274, [16, 48, 54]], +[18, ["repeat", 188], 477, 484, [53, 19, 20, 76]], +[19, ["number", 4], 536, 484, [18, null]], +[20, "setcolor", 495, 526, [18, 22, 55]], +[21, "color", 626, 526, [22, null]], +[22, ["minus2", 0], 572, 526, [20, 21, 23]], +[23, ["number", 2], 650, 568, [22, null]], +[24, ["if", 0], 495, 650, [55, 25, 70, 56]], +[25, ["greater2", 0], 551, 616, [24, 88, 26, null]], +[26, ["number", 1], 621, 658, [25, null]], +[27, "forward", 495, 818, [56, 28, 57]], +[28, ["product2", 0], 566, 818, [27, 92, 29]], +[29, ["number", 3], 620, 860, [28, null]], +[30, "right", 495, 902, [57, 31, null]], +[31, ["number", 90], 553, 902, [30, null]], +[32, ["product2", 0], 545, 1004, [76, 94, 33]], +[33, ["number", 3], 599, 1046, [32, null]], +[34, "forward", 821, 272, [64, 78, 66]], +[35, ["repeat", 21], 821, 356, [66, 36, 37, 40]], +[36, ["number", 2], 880, 356, [35, null]], +[37, "forward", 839, 398, [35, 80, 38]], +[38, "right", 839, 440, [37, 39, null]], +[39, ["number", 90], 897, 440, [38, null]], +[40, "pendown", 821, 500, [35, 41]], +[41, "forward", 821, 542, [40, 82, 42]], +[42, "penup", 821, 584, [41, 43]], +[43, ["repeat", 21], 821, 626, [42, 44, 45, null]], +[44, ["number", 2], 880, 626, [43, null]], +[45, "forward", 839, 668, [43, 84, 46]], +[46, "right", 839, 710, [45, 47, null]], +[47, ["number", 90], 897, 710, [46, null]], +[48, ["plus2", 0], 554, 274, [17, 49, 50]], +[49, "color", 608, 274, [48, null]], +[50, ["number", 8], 608, 316, [48, null]], +[51, ["division2", 0], 545, 400, [72, 86, 52]], +[52, ["number", 3], 623, 442, [51, null]], +[53, ["vspace", 0], 477, 442, [72, 18]], +[54, ["vspace", 0], 477, 316, [17, 72]], +[55, ["vspace", 20.0], 495, 568, [20, 24]], +[56, ["vspace", 0], 495, 776, [24, 27]], +[57, ["vspace", 0], 495, 860, [27, 30]], +[58, "penup", 221, 304, [2, 4]], +[59, "pendown", 221, 430, [4, 7]], +[60, "hat", 477, 178, [null, 61, 16]], +[61, ["string", "action"], 535, 190, [60, null]], +[62, "hat", 821, 176, [null, 63, 64]], +[63, ["string", "action_2"], 879, 188, [62, null]], +[64, "stack", 821, 230, [62, 65, 34]], +[65, ["string", "action"], 879, 230, [64, null]], +[66, "stack", 821, 314, [34, 67, 35]], +[67, ["string", "action"], 879, 314, [66, null]], +[68, "stack", 221, 598, [74, 69, 10]], +[69, ["string", "action"], 279, 598, [68, null]], +[70, "stack", 513, 716, [24, 71, null]], +[71, ["string", "action_2"], 571, 716, [70, null]], +[72, ["storein", 0], 477, 358, [54, 73, 51, 53]], +[73, ["string", "my box"], 545, 358, [72, null]], +[74, ["storein", 0], 221, 514, [7, 75, 9, 68]], +[75, ["string", "my box"], 289, 514, [74, null]], +[76, ["storein", 0], 477, 962, [18, 77, 32, null]], +[77, ["string", "my box"], 545, 962, [76, null]], +[78, "box", 892, 272, [34, 79, null]], +[79, ["string", "my box"], 947, 272, [78, null]], +[80, "box", 910, 398, [37, 81, null]], +[81, ["string", "my box"], 965, 398, [80, null]], +[82, "box", 892, 542, [41, 83, null]], +[83, ["string", "my box"], 947, 542, [82, null]], +[84, "box", 910, 668, [45, 85, null]], +[85, ["string", "my box"], 965, 668, [84, null]], +[86, "box", 599, 400, [51, 87, null]], +[87, ["string", "my box"], 654, 400, [86, null]], +[88, "box", 597, 616, [25, 89, null]], +[89, ["string", "my box"], 652, 616, [88, null]], +[90, "box", 310, 724, [13, 91, null]], +[91, ["string", "my box"], 365, 724, [90, null]], +[92, "box", 620, 818, [28, 93, null]], +[93, ["string", "my box"], 675, 818, [92, null]], +[94, "box", 599, 1004, [32, 95, null]], +[95, ["string", "my box"], 654, 1004, [94, null]]] diff --git a/samples/sensors-valentine.ta b/samples/sensors-valentine.ta index 30e0cb3..c762863 100644 --- a/samples/sensors-valentine.ta +++ b/samples/sensors-valentine.ta @@ -105,5 +105,4 @@ [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 +[107, ["sandwichcollapsed", 1], 780, 336, [11, null]]] diff --git a/samples/sensors-vumeter.ta b/samples/sensors-vumeter.ta index 22491c7..642e4bc 100644 --- a/samples/sensors-vumeter.ta +++ b/samples/sensors-vumeter.ta @@ -64,5 +64,4 @@ [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 +[66, ["plus2", 0], 1003, 587, [54, 65, 58]]] diff --git a/samples/utility-timer.ta b/samples/utility-timer.ta index cb691ec..bfaa7e5 100644 --- a/samples/utility-timer.ta +++ b/samples/utility-timer.ta @@ -78,5 +78,4 @@ [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 +[80, "hideblocks", 194, 116, [10, 14]]] -- cgit v0.9.1