On second thought I suspect you have that much down and you fail to see how to
branch of into the right direction at 1/n of the length and to the left at 1/k
for k < n with different angles.
On Nov 13, 2010, at 10:09 AM, Matthias Felleisen wrote:
>
> Here is a hint I posted some N years ago
Here is a hint I posted some N years ago for my freshmen: Recall the hint: "Think of the problem as drawing a straight line, givenits starting point and an angle in, say, radians." Graphically the situationlooks like this:Your given the starting point (x0,y0) the _length_ and the angle _a_ and you
I suppose I should have clarified that, yes, its from the book, section 27.1.4.
--- On Sat, 11/13/10, Noel Welsh wrote:
From: Noel Welsh
Subject: Re: [racket] Svannah fractals.
To: "Ken Hegeland"
Cc: us...@lists.racket-lang.org
Date: Saturday, November 13, 2010, 7:35 AM
I this in
I this in reference to a HtDP exercise, or a personal project? If the
later you might be interested in
https://github.com/noelwelsh/splatter/blob/master/demo.ss
The function tree defines a context-free grammar for drawing ... well, guess.
HTH,
N.
On Sat, Nov 13, 2010 at 3:00 AM, Ken Hegeland
I have a nearly working code, it draws the tree, but it is slightly off. I
realize what is wrong that is causing the problem, for each recursive call I
used a set angle. The tree draws all the left branches at the same angle and
all right branches at the same angle. I end up with a picture of a
5 matches
Mail list logo