Skip to content

Instantly share code, notes, and snippets.

@aintai
Created September 6, 2020 15:53
Show Gist options
  • Save aintai/4a0531c1e25bb07ac0b43a9420a7a3a2 to your computer and use it in GitHub Desktop.
Save aintai/4a0531c1e25bb07ac0b43a9420a7a3a2 to your computer and use it in GitHub Desktop.
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