Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/graphics-dots.ta30
-rw-r--r--samples/math-dice.ta223
-rw-r--r--samples/math-tree.ta (renamed from samples/graphics-tree.ta)0
3 files changed, 132 insertions, 121 deletions
diff --git a/samples/graphics-dots.ta b/samples/graphics-dots.ta
index 6bfc5fa..01c0f0f 100644
--- a/samples/graphics-dots.ta
+++ b/samples/graphics-dots.ta
@@ -1,11 +1,11 @@
-[[0, "clean", 780, 246, [1, 2]],
-[1, ["start", 2.0], 780, 200, [null, 0]],
-[2, "setcolor", 780, 288, [0, 3, 4]],
-[3, ["number", 0], 857, 288, [2, null]],
-[4, "setpensize", 780, 330, [2, 5, 19]],
-[5, ["number", 20], 882, 330, [4, null]],
-[6, ["repeat", 0], 780, 456, [19, 7, 32, null]],
-[7, ["number", 1000], 839, 456, [6, null]],
+[[0, "clean", 760, 186, [1, 34]],
+[1, ["start", 2.0], 760, 140, [null, 0]],
+[2, "setcolor", 760, 354, [34, 3, 4]],
+[3, ["number", 0], 837, 354, [2, null]],
+[4, "setpensize", 760, 396, [2, 5, 19]],
+[5, ["number", 20], 862, 396, [4, null]],
+[6, ["repeat", 0], 760, 522, [19, 7, 32, null]],
+[7, ["number", 1000], 819, 522, [6, null]],
[8, "pendown", 1020, 254, [30, 9]],
[9, "forward", 1020, 296, [8, 10, 11]],
[10, ["number", 1], 1091, 296, [9, null]],
@@ -17,9 +17,9 @@
[16, ["number", 1], 1142, 548, [15, null]],
[17, "setcolor", 1020, 590, [18, 24, null]],
[18, ["vspace", 0], 1020, 548, [26, 17]],
-[19, ["storein", 0], 780, 372, [4, 20, 21, 6]],
-[20, ["string", "my box"], 848, 372, [19, null]],
-[21, ["number", 0], 848, 414, [19, null]],
+[19, ["storein", 0], 760, 438, [4, 20, 21, 6]],
+[20, ["string", "my box"], 828, 438, [19, null]],
+[21, ["number", 0], 828, 480, [19, null]],
[22, "box", 1091, 380, [12, 23, null]],
[23, ["string", "my box"], 1146, 380, [22, null]],
[24, "box", 1097, 590, [17, 25, null]],
@@ -30,5 +30,9 @@
[29, ["string", "my box"], 1197, 506, [28, null]],
[30, "hat", 1020, 200, [null, 31, 8]],
[31, ["string", "dot"], 1078, 212, [30, null]],
-[32, "stack", 798, 498, [6, 33, null]],
-[33, ["string", "dot"], 856, 498, [32, null]]]
+[32, "stack", 778, 564, [6, 33, null]],
+[33, ["string", "dot"], 836, 564, [32, null]],
+[34, "fillscreen2", 760, 228, [0, 35, 37, 36, 2]],
+[35, ["number", 60], 842, 228, [34, null]],
+[36, ["number", 100], 842, 312, [34, null]],
+[37, "white", 842, 270, [34, null]]]
diff --git a/samples/math-dice.ta b/samples/math-dice.ta
index 4e1592a..ee1f310 100644
--- a/samples/math-dice.ta
+++ b/samples/math-dice.ta
@@ -1,108 +1,115 @@
-[[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]]]
+[[0, ["start", 1.334], 400, 120, [null, 20]],
+[1, ["random", 0], 293, 567, [7, 2, 3, null]],
+[2, ["number", 1], 350, 567, [1, null]],
+[3, ["number", 6], 350, 595, [1, null]],
+[4, ["random", 0], 293, 512, [7, 5, 6, null]],
+[5, ["number", 1], 350, 512, [4, null]],
+[6, ["number", 6], 350, 540, [4, null]],
+[7, ["plus2", 20], 257, 512, [75, 4, 1]],
+[8, ["storein", 0], 212, 622, [12, 93, 11, null]],
+[9, ["number", 1], 293, 678, [11, null]],
+[10, "box", 293, 650, [11, 95, null]],
+[11, ["plus2", 0], 257, 650, [8, 10, 9]],
+[12, ["vspace", 40], 212, 540, [75, 8]],
+[13, ["repeat", 124], 200, 456, [14, 23, 75, null]],
+[14, "hat", 200, 420, [null, 15, 13]],
+[15, ["string", "toss dice"], 239, 428, [14, null]],
+[16, "stack", 400, 235, [27, 17, 18]],
+[17, ["string", "toss dice"], 439, 235, [16, null]],
+[18, "stack", 400, 263, [16, 19, null]],
+[19, ["string", "plot results"], 439, 263, [18, null]],
+[20, ["storein", 0], 400, 151, [0, 21, 22, 27]],
+[21, ["string", "trials"], 445, 151, [20, null]],
+[22, ["number", 1600], 445, 179, [20, null]],
+[23, "box", 239, 456, [13, 24, null]],
+[24, ["string", "trials"], 276, 456, [23, null]],
+[25, "hat", 200, 180, [null, 26, 82]],
+[26, ["string", "clear bins"], 239, 188, [25, null]],
+[27, "stack", 400, 207, [20, 28, 16]],
+[28, ["string", "clear bins"], 439, 207, [27, null]],
+[29, ["storein", 0], 212, 300, [33, 85, 30, 107]],
+[30, ["number", 0], 257, 328, [29, null]],
+[31, ["number", 1], 1001, 252, [32, null]],
+[32, ["plus2", 0], 965, 224, [80, 87, 31]],
+[33, ["repeat", 42], 200, 272, [82, 34, 29, null]],
+[34, ["number", 11], 239, 272, [33, null]],
+[35, "hat", 480, 420, [null, 36, 61]],
+[36, ["string", "plot results"], 519, 428, [35, null]],
+[37, "penup", 700, 456, [101, 39]],
+[38, "pendown", 700, 678, [68, 113]],
+[39, ["setxy2", 40], 700, 484, [37, 41, 40, 65]],
+[40, ["number", 0], 739, 566, [39, null]],
+[41, ["product2", 0], 739, 484, [39, 44, 42]],
+[42, ["minus2", 0], 775, 512, [41, 89, 43]],
+[43, ["number", 6], 840, 540, [42, null]],
+[44, ["number", 50], 775, 484, [41, null]],
+[45, ["repeat", 0], 480, 568, [77, 46, 103, 70]],
+[46, ["number", 11], 519, 568, [45, null]],
+[47, ["repeat", 63], 960, 512, [56, 48, 49, 57]],
+[48, ["number", 2], 999, 512, [47, null]],
+[49, "forward", 972, 540, [47, 64, 50]],
+[50, "right", 972, 568, [49, 51, 52]],
+[51, ["number", 90], 1011, 568, [50, null]],
+[52, "forward", 972, 596, [50, 53, 54]],
+[53, ["number", 40], 1019, 596, [52, null]],
+[54, "right", 972, 624, [52, 55, null]],
+[55, ["number", 90], 1011, 624, [54, null]],
+[56, "startfill", 960, 484, [58, 47]],
+[57, "stopfill", 960, 664, [47, 109]],
+[58, "setcolor", 960, 456, [111, 60, 56]],
+[59, ["number", 10], 1047, 484, [60, null]],
+[60, ["product2", 0], 1011, 456, [58, 97, 59]],
+[61, "clean", 480, 456, [35, 62]],
+[62, "setshade", 480, 484, [61, 63, 77]],
+[63, ["number", 25], 537, 484, [62, null]],
+[64, "box", 1019, 540, [49, 99, null]],
+[65, "back", 700, 594, [39, 66, 67]],
+[66, ["number", 100.0], 739, 594, [65, null]],
+[67, "show", 700, 622, [65, 91, 68]],
+[68, "forward", 700, 650, [67, 69, 38]],
+[69, ["number", 100.0], 747, 650, [68, null]],
+[70, "penup", 480, 636, [45, 72]],
+[71, "pendown", 480, 720, [72, null]],
+[72, ["setxy2", 0], 480, 664, [70, 73, 74, 71]],
+[73, ["number", 0], 519, 664, [72, null]],
+[74, ["number", -50], 519, 692, [72, null]],
+[75, ["storein", 0], 212, 484, [13, 76, 7, 12]],
+[76, ["string", "box"], 257, 484, [75, null]],
+[77, ["storein", 0], 480, 512, [62, 78, 79, 45]],
+[78, ["string", "box"], 525, 512, [77, null]],
+[79, ["number", 2], 525, 540, [77, null]],
+[80, ["storein", 0], 920, 196, [105, 81, 32, null]],
+[81, ["string", "box"], 965, 196, [80, null]],
+[82, ["storein", 0], 200, 216, [25, 83, 84, 33]],
+[83, ["string", "box"], 245, 216, [82, null]],
+[84, ["number", 2], 245, 244, [82, null]],
+[85, "box", 257, 300, [29, 86, null]],
+[86, ["string", "box"], 294, 300, [85, null]],
+[87, "box", 1001, 224, [32, 88, null]],
+[88, ["string", "box"], 1038, 224, [87, null]],
+[89, "box", 824, 512, [42, 90, null]],
+[90, ["string", "box"], 861, 512, [89, null]],
+[91, "box", 739, 622, [67, 92, null]],
+[92, ["string", "box"], 776, 622, [91, null]],
+[93, "box", 257, 622, [8, 94, null]],
+[94, ["string", "box"], 294, 622, [93, null]],
+[95, "box", 330, 650, [10, 96, null]],
+[96, ["string", "box"], 367, 650, [95, null]],
+[97, "box", 1047, 456, [60, 98, null]],
+[98, ["string", "box"], 1084, 456, [97, null]],
+[99, "box", 1056, 540, [64, 100, null]],
+[100, ["string", "box"], 1093, 540, [99, null]],
+[101, "hat", 700, 420, [null, 102, 37]],
+[102, ["string", "bar graph"], 739, 428, [101, null]],
+[103, "stack", 492, 596, [45, 104, null]],
+[104, ["string", "bar graph"], 531, 596, [103, null]],
+[105, "hat", 920, 160, [null, 106, 80]],
+[106, ["string", "next bin"], 959, 168, [105, null]],
+[107, "stack", 212, 356, [29, 108, null]],
+[108, ["string", "next bin"], 251, 356, [107, null]],
+[109, "stack", 960, 692, [57, 110, null]],
+[110, ["string", "next bin"], 999, 692, [109, null]],
+[111, "hat", 960, 420, [null, 112, 58]],
+[112, ["string", "bar"], 999, 428, [111, null]],
+[113, "stack", 700, 706, [38, 114, null]],
+[114, ["string", "bar"], 739, 706, [113, null]]]
diff --git a/samples/graphics-tree.ta b/samples/math-tree.ta
index 5993475..5993475 100644
--- a/samples/graphics-tree.ta
+++ b/samples/math-tree.ta