(no title)
oneearedrabbit | 2 years ago
Can you try generating 1/8 or 1/4 curves to check the partial generation? Or these rules--should produce the triangular shape:
A=AFFFB-F-FB+F+A
B=B+F+AF-F-AFFFBoneearedrabbit | 2 years ago
Can you try generating 1/8 or 1/4 curves to check the partial generation? Or these rules--should produce the triangular shape:
A=AFFFB-F-FB+F+A
B=B+F+AF-F-AFFFB
kragen|2 years ago
this recipe does work in fractint to produce the triangular shape:
and based on that, this produces the whole cycle: and accordingly this works on Kandalov's site with the same axiom: oh, now i know what the problem is, D is a drawing command in fractint; i had too much D, the opposite of the usual problem. so this works: but i like `simplified` above betterincidentally the paper seems to call it 'h-indexing'
kragen|2 years ago
this is literally a numerical approximation if you treat the string as a fractional number in some base, e.g., base 10 with a=1, b=2, f=3, +=4, -=5
with that interpretation, the first approximation 'a' is 0.1, the second approximation 'afffb-f-fb+f+a' is 0.13332535324341, the third approximation 'afffb-f-fb+f+afffb+f+af-f-afffb-f-fb+f+af-f-afffb+f+afffb-f-fb+f+a' is 0.133325353243413332434135351333253532434135351333243413332535324341, and so on.
the thue-morse sequence can be generated in the same way with the l-system
although the so-called fibonacci word is slightly simpler all of the above morphic words are aperiodic, though it's trivial to design a periodic morphic worda program to output the infinite morphic word of movement commands for the h-curve of a single triangle is
this is in http://canonical.org/~kragen/sw/dev3/hcurvestream.pywhich outputs about 5MB/s on this palmtop but will slow down as it runs into swap after generating less than the size of RAM in output
the output begins (via fold -w 70):