Created
November 24, 2021 16:19
-
-
Save protozoo/84e8b605398f8033c59a0e3107354460 to your computer and use it in GitHub Desktop.
Logo (Turtle) program to generate greek key patter (meandros)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Run in a Turtle interpreter such as https://www.calormen.com/jslogo/# | |
to cenefa :startX :startY :color | |
setpencolor :color | |
setpensize 5 | |
penup | |
setxy :startX :startY | |
pendown | |
repeat 8 [ fd 40 lt 90 fd 20 lt 90 fd 20 rt 90 fd 20 rt 90 fd 40 rt 90 fd 30 lt 90 fd 20 lt 90 fd 20 rt 90 fd 20 rt 90 fd 30 lt 90] | |
penup | |
fd 10 | |
lt 90 | |
fd 40 lt 90 | |
pendown | |
repeat 8 [ fd 40 lt 90 fd 20 lt 90 fd 20 rt 90 fd 20 rt 90 fd 40 rt 90 fd 30 lt 90 fd 20 lt 90 fd 20 rt 90 fd 20 rt 90 fd 30 lt 90] | |
END | |
clearscreen | |
rt 90 | |
cenefa -400 0 "D26E33 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment