Updated lindenmayer for 0.82
parent
e485fa61f9
commit
26cde24cea
|
|
@ -145,6 +145,8 @@ cond ;
|
||||||
! Lindenmayer string interpretation
|
! Lindenmayer string interpretation
|
||||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
|
: last ( seq -- [ last-item ] ) dup length* 1 - swap tail ;
|
||||||
|
|
||||||
SYMBOL: command-table
|
SYMBOL: command-table
|
||||||
|
|
||||||
: segment-command ( seg -- command ) 1 swap head ;
|
: segment-command ( seg -- command ) 1 swap head ;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
USING: parser words compiler sequences ;
|
USING: parser words compiler sequences ;
|
||||||
"lindenmayer.factor" run-file
|
|
||||||
"viewer.factor" run-file
|
"contrib/x11/examples/lindenmayer/lindenmayer.factor" run-resource
|
||||||
|
"contrib/x11/examples/lindenmayer/viewer.factor" run-resource
|
||||||
"lindenmayer" words [ try-compile ] each
|
"lindenmayer" words [ try-compile ] each
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
USING: kernel alien math arrays sequences opengl namespaces concurrency
|
USING: kernel alien math arrays sequences opengl namespaces concurrency
|
||||||
xlib x x11 gl concurrent-widgets lindenmayer ;
|
x11 x gl concurrent-widgets lindenmayer ;
|
||||||
|
|
||||||
IN: lindenmayer
|
IN: lindenmayer
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue