Sierpinski curve: Difference between revisions

Content added Content deleted
m (→‎{{header|Quackery}}: fast graphics)
Line 1,366: Line 1,366:
5 times expand
5 times expand

turtle 1 8 turn
[ $ "turtleduck.qky" loadfile ] now!
[ stack ] is switch.arg ( --> [ )
[ switch.arg put ] is switch ( x --> )
[ switch.arg release ] is otherwise ( --> )
[ switch.arg share
!= iff ]else[ done
otherwise ]'[ do ]done[ ] is case ( x --> )
[ $ "" swap witheach
[ nested quackery join ] ] is expand ( $ --> $ )
[ $ "L" ] is L ( $ --> $ )
[ $ "R" ] is R ( $ --> $ )
[ $ "F" ] is F ( $ --> $ )

[ $ "G" ] is G ( $ --> $ )
[ $ "AFLGLAFRRFRRAFLGLA" ] is A ( $ --> $ )
$ "FRRAFRRFRRAF"
4 times expand
turtle
10 frames
1 8 turn
witheach
witheach
[ switch
[ switch
Line 1,373: Line 1,405:
char A case [ ( ignore ) ]
char A case [ ( ignore ) ]
otherwise [ 5 1 walk ] ] ]
otherwise [ 5 1 walk ] ] ]
-1 8 turn</syntaxhighlight>
-1 8 turn
1 frames</syntaxhighlight>


{{output}}
{{output}}