Looking at the Hilbert Curve, which I _thought_ could be easily represented in L-system – I found it it can. Now to find something on my computer to type that in and try it myself. ==== wikipedia The Hilbert Curve can be expressed by a rewrite system (L-system). Hilbert curve at its sixth iteration Alphabet : A, B Constants : F + − Axiom : A Production rules: A → − B F + A F A + F B − B → + A F − B F B − F A + Here, “F” means “draw forward”, “−” means “turn left 90°”, “+” means “turn right 90°” (see turtle graphics), and “A” and “B” are ignored during drawing. ====

Looking at the Hilbert Curve, which I _thought_ could be easily represented in L-system – I found it it can. Now to find something on my computer to type that in and try it myself.
==== wikipedia
The Hilbert Curve can be expressed by a rewrite system (L-system).

Hilbert curve at its sixth iteration

Alphabet : A, B
Constants : F + −
Axiom : A
Production rules:

A → − B F + A F A + F B −
B → + A F − B F B − F A +

Here, “F” means “draw forward”, “−” means “turn left 90°”, “+” means “turn right 90°” (see turtle graphics), and “A” and “B” are ignored during drawing.
====

====

Ah, Wolfram’s instructions are far more useful.

The Hilbert curve can be simply encoded with initial string “L”, string rewriting rules “L” -> “+RF-LFL-FR+”, “R” -> “-LF+RFR+FL-“, and angle 90 degrees (Peitgen and Saupe 1988, p. 278).

I downloaded an old windows program written by a Chinese student 10 yrs ago and I’m gonna see if it works.

====

 

Leave a comment

Your email address will not be published. Required fields are marked *


2 − one =

Leave a Reply