Advertisement
przemko

Koch snowflake

Jan 13th, 2025 (edited)
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. : PARAMS
  2. 2 PICK 3 / 2 PICK 1 - ;
  3. : SIDE
  4. DUP 0 = IF DROP MOVE ELSE PARAMS SIDE -60 TURN PARAMS SIDE 120 TURN PARAMS SIDE -60 TURN PARAMS SIDE DROP DROP THEN ;
  5. : KOCH
  6. 3 0 DO 2 PICK 2 PICK SIDE 120 TURN LOOP ;
  7.  
Tags: Forth GraFORTH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement