( 1332966105 meth DemoStar step FOR( i : Num pi * 60 ) DO( theta = i * 0.1. x = theta cos * 200 + 222. y = theta sin * 200 + 222. self line: (200, 200) to: (x, y). "self text: i str nw: (x, y)." ) ) 1332966105 ( 1332966169 meth DemoStar step FOR( i : Num pi * 60 ) DO( theta = i * 0.1. x = theta cos * 400 + 222. y = theta sin * 200 + 222. self line: (200, 200) to: (x, y). "self text: i str nw: (x, y)." ) ) 1332966169 ( 1332966222 meth OldStar handle:query: "Event Location." ex, ey = b at: 'ex', b at: 'ey'. "Default Location." ex = IF( ex equals: nil )THEN( 300 )ELSE( ex num ). ey = IF( ey equals: nil )THEN( 300 )ELSE( ey num ). v = 100 range collect: [i: theta = i fdiv: 10 . x= theta sin * 190 + 300. y= theta cos * 290 + 300. VEC('line', ex, ey, x, y). ] . DICT( 'type', 'draw'; 'title', 'Drawing a line'; 'value', v; 'width', 600; 'height', 600; ). ) 1332966222 ( 1332966275 meth DemoStar step FOR( i : Num pi * 60 ) DO( theta = i * 0.1. x = theta cos * 500 + 222. y = theta sin * 200 + 222. self line: (200, 200) to: (x, y). "self text: i str nw: (x, y)." ) ) 1332966275 ( 1332967159 meth DemoLissajous step FOR(i : p) DO( b = 0.5 * i $ cos * 500 + 500, 0.3 * i $ sin * 240 + 240. IF(i) THEN(self line: a to: b). self text: i str nw: b. a = b. ). p = p + 40. ) 1332967159 ( 1332967218 meth DemoLissajous step FOR(i : p) DO( b = 0.3 * i $ cos * 500 + 500, 0.5 * i $ sin * 240 + 240. IF(i) THEN(self line: a to: b). self text: i str nw: b. a = b. ). p = p + 40. ) 1332967218 ( 1332967280 meth DemoLissajous step FOR(i : p) DO( b = 0.4 * i $ cos * 500 + 500, 0.3 * i $ sin * 240 + 240. IF(i) THEN(self line: a to: b). self text: i str nw: b. a = b. ). p = p + 40. ) 1332967280 ( 1332967331 meth DemoLissajous step FOR(i : p) DO( b = 0.4 * i $ cos * 500 + 500, 0.3 * i $ sin * 240 + 240. " IF(i) THEN(self line: a to: b)." self text: i str nw: b. a = b. ). p = p + 40. ) 1332967331 ( 1332967480 meth DemoLissajous step FOR(i : p) DO( b = i / 3 $ cos * 500 + 500, i / 5 $ sin * 240 + 240. " IF(i) THEN(self line: a to: b)." self text: i str nw: b. a = b. ). p = p + 40. ) 1332967480 ( 1332967527 meth DemoLissajous step FOR(i : p) DO( b = i / 5 $ cos * 500 + 500, i / 3 $ sin * 240 + 240. " IF(i) THEN(self line: a to: b)." self text: i str nw: b. a = b. ). p = p + 40. ) 1332967527 ( 1332969385 meth DrawLine handle:query: z = sys files, ' '. DICT( 'type', 'text'; 'title', 'Drawing a line'; 'value', z; 'width', 300; 'height', 500; ) ) 1332969385 ( 1332969564 meth DrawLine handle:query: z = sys files, ' '. for( a,b,c:sys files) map( a, sys read: a ). DICT( 'type', 'text'; 'title', 'Drawing a line'; 'value', z; 'width', 300; 'height', 500; ) ) 1332969564 ( 1332969649 meth DrawLine handle:query: z = sys files, ' ', for( a,b,c:sys files) map( a, sys read: a ). DICT( 'type', 'text'; 'title', 'Drawing a line'; 'value', z; 'width', 300; 'height', 500; ) ) 1332969649 ( 1332970161 class aa DrawApp ) 1332970161 ( 1332971533 meth DemoLissajous step FOR(i : p) DO( b = i / 5 $ cos * 500 + 500, i / 3 $ sin * 240 + 240. " IF(i) THEN(self line: a to: b)." self text: i str nw: b. a = b. ). p = p + 40. ) 1332971533 ( 1332979647 meth DemoLissajous step FOR(i : p) DO( b = i / 5 $ cos * 200 + 500, i / 3 $ sin * 240 + 240. " IF(i) THEN(self line: a to: b)." self text: i str nw: b. a = b. ). p = p + 40. ) 1332979647 ( 1333030891 meth DemoLissajous step FOR(i : p) DO( b = i / 5 $ cos * 500 + 500, i / 3 $ sin * 240 + 240. " IF(i) THEN(self line: a to: b)." self text: i str nw: b. a = b. ). p = p + 40. ) 1333030891 ( 1333054888 meth aa step self ) 1333054888 ( 1333055489 meth aa step v= 0,0; 999,444; 888,55. for(i:100)do( ). self. ) 1333055489 ( 1333055861 meth aa step x,y=0,0. v= 0,0; 999,444; 888,55. for(i:100)do( r=num rand *3. u,v = v at: r. x,y = x+u$/2, y+v$/2. se line: (x,y) to: (x+2,y+2). ). self. ) 1333055861 ( 1333056056 meth Home handle:query: "Default class for handling ':'." Dict new at: 'type' put: 'list' $ at: 'title' put: a $ at: 'value' put: ( '|link|/aa|aa', 'aa'; '|link|/Home|HOME|', 'Go Home.'; '|link|/Reset|Reset|', 'Reset Interpreter.'; '|link|/Browse|Browse and Edit Code|', 'Browse Classes.'; '|link|/FormDoit|Eval|', 'Evaluate code'; '|link|/DemoStar|[DemoStar]|', 'Demo Star 2'; '|link|/DemoLife|[DemoLife]|', 'Conway''s Life'; '|link|/DemoLissajous|[DemoLissajous]|', 'Demo Lissajous Curve'; '|link|/DrawLine|[DrawLine]|', 'Draw Line'; '|link|/DrawRect|[DrawRect]|', 'Draw Rect'; '|link|/OldStar|[OldStar]|', 'Draw Star'; '|link|/SwitchWorld|[SwitchWorld]|', 'SwitchWorld '; '|link|/ListUnicodePages|[ListUnicodePages]|', 'List Unicode Pages'; ). ) 1333056056 ( 1333056117 meth Home handle:query: "Default class for handling ':'." Dict new at: 'type' put: 'list' $ at: 'title' put: a $ at: 'value' put: ( '|link|/aa|aa|', 'aa'; '|link|/Home|HOME|', 'Go Home.'; '|link|/Reset|Reset|', 'Reset Interpreter.'; '|link|/Browse|Browse and Edit Code|', 'Browse Classes.'; '|link|/FormDoit|Eval|', 'Evaluate code'; '|link|/DemoStar|[DemoStar]|', 'Demo Star 2'; '|link|/DemoLife|[DemoLife]|', 'Conway''s Life'; '|link|/DemoLissajous|[DemoLissajous]|', 'Demo Lissajous Curve'; '|link|/DrawLine|[DrawLine]|', 'Draw Line'; '|link|/DrawRect|[DrawRect]|', 'Draw Rect'; '|link|/OldStar|[OldStar]|', 'Draw Star'; '|link|/SwitchWorld|[SwitchWorld]|', 'SwitchWorld '; '|link|/ListUnicodePages|[ListUnicodePages]|', 'List Unicode Pages'; ). ) 1333056117 ( 1333056179 meth aa step x,y=0,0. pp= 0,0; 999,444; 888,55. for(i:100)do( r=num rand *3. u,v = pp at: r. x,y = x+u$/2, y+v$/2. se line: (x,y) to: (x+2,y+2). ). self. ) 1333056179 ( 1333056229 meth aa step x,y=0,0. pp= 0,0; 999,444; 888,55. for(i:100)do( r=num rand *3. u,v = pp at: r. x,y = x+u$/2, y+v$/2. se line: (x,y) to: (x+2,y+2). ). self. ) 1333056229 ( 1333056426 meth aa init p=100 ) 1333056426 ( 1333056484 meth aa step x,y=0,0. pp= 0,0; 999,444; 888,55. for(i:p)do( r=num rand *3. u,v = pp at: r. x,y = x+u$/2, y+v$/2. se line: (x,y) to: (x+2,y+2). ). p=p+100. ) 1333056484 ( 1333056616 meth aa step x,y=0,0. pp= 0,0; 999,444; 888,55. for(i:p)do( r=num rand *3. u,v = pp at: r. x,y = x+u$/2, y+v$/2. se line: (x,y) to: (x+2,y+2). ). p=p+100. ) 1333056616 ( 1333062927 meth OldStar handle:query: "Event Location." ex, ey = b at: 'ex', b at: 'ey'. "Default Location." ex = IF( ex equals: nil )THEN( 300 )ELSE( ex num ). ey = IF( ey equals: nil )THEN( 300 )ELSE( ey num ). v = 100 range collect: [i: theta = i fdiv: 10 . x= theta sin * 590 + 300. y= theta cos * 290 + 300. VEC('line', ex, ey, x, y). ] . DICT( 'type', 'draw'; 'title', 'Drawing a line'; 'value', v; 'width', 600; 'height', 600; ). ) 1333062927 ( 1333148525 class aabak App ) 1333148525 ( 1333148662 meth aabak handle:query: ) 1333148662 ( 1333148711 meth aabak handle:query: sys write: 'bak1.txt' value: ( sys read: 'w_aaa.txt') ) 1333148711 ( 1333148830 meth aabak handle:query: sys push: 'bak1.txt' value: ( sys read: 'w_aaa.txt') ) 1333148830 ( 1333148934 meth aabak bak1 ) 1333148934 ( 1333148974 meth aabak bak1 sys write: 'bak1.txt' value: ( sys read: 'w_aaa.txt') ) 1333148974 ( 1333149143 meth aabak handle:query: sys push: 'bak1.txt' value: ( sys read: 'w_aaa.txt') ) 1333149143 ( 1333149157 meth aabak handle:query: sys webfiles ) 1333149157 ( 1333149221 meth aabak handle:query: sys webfiles ) 1333149221 ( 1333149227 meth aabak handle:query: sys webfiles ) 1333149227 ( 1333149242 meth aabak handle:query: sys pull:'x' ) 1333149242 ( 1333151838 meth aabak handle:query: sys trigraphs ) 1333151838 ( 1333152188 meth aabak bak1 sys push: 'bak1.txt' value: ( sys read: 'w_aaa.txt') ) 1333152188