Created
September 6, 2020 15:53
-
-
Save aintai/4a0531c1e25bb07ac0b43a9420a7a3a2 to your computer and use it in GitHub Desktop.
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
var level = 6; | |
var axiom = '[7]++[7]++[7]++[7]++[7]'; | |
var rules = { | |
'6' : '81++91----71[-81----61]++', | |
'7' : '+81--91[---61--71]+', | |
'8' : '-61++71[+++81++91]-', | |
'9' : '--81++++61[+91++++71]--71', | |
'1' : '', | |
'+' : '+', | |
'-' : '-', | |
'[' : '[', | |
']' : ']' | |
}; | |
var symbols = { | |
'1':'F', | |
'6':' ', | |
'7':' ', | |
'8':' ', | |
'9':' ', | |
'+':'+', | |
'-':'-', | |
'[':'[', | |
']':']' | |
}; | |
var angle = 36.0; | |
var len = 100/(level); | |
t.setProperty({fillcolor:'#ff99cc'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment