World zzz102

Classes: DrawRect RedPlane trek WebApp

Methods: handle:query: prototype wmid

Classes

DrawRect

handle:query:
v = Vec new. FOR(x : 50) DO( FOR(y : 50) DO( v append: VEC('rect', 20 * x + 40*x sin, 30 * y + 60*y sin, 10, 10, 2, 'green'). v append: VEC('line', 40 * x + 80*x sin, 30 * y + 60*y sin, 10, 10, 2, 'green'). ). ). DICT( 'type', 'draw'; 'title', 'Drawing 100 Rectangles'; 'value', v; 'width', 300; 'height', 500; ).

RedPlane

prototype
Group new vec: VEC( "Fusalage along the X axis" Cube new $ scale: 1 @ 0.2 @ 0.2 $ color: 1 @ 0 @ 0 @ 1, "Wings along the Y axis" Cube new $ scale: 0.3 @ 0.9 @ 0.1 $ color: 0 @ 1 @ 0 @ 1 $ pos: 0.2 @ 0 @ 0.1, ).

trek < WebApp

wmid
n,k= 175,250. v= for( n) map(0). for( k) do( v at: (Num rand: n) put: 1 ). for(i:x: v) do(n= n - x). (64 ,) imp ; ' :-) '; n; ' :-) '; str meths dir join; ' :-) '; ((-1,-4,-7) unit abs ,) join:'@ ';

WebApp

Method CrossReference

handle:query:
DrawRect  
prototype
RedPlane  
wmid
trek