Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5323 > unrolled thread
| Started by | Tom De Vries <tidetabletom@gmail.com> |
|---|---|
| First post | 2011-10-02 06:40 +0000 |
| Last post | 2011-10-02 06:40 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Simple fractal Tom De Vries <tidetabletom@gmail.com> - 2011-10-02 06:40 +0000
| From | Tom De Vries <tidetabletom@gmail.com> |
|---|---|
| Date | 2011-10-02 06:40 +0000 |
| Subject | Simple fractal |
| Message-ID | <j69112$rdd$1@smc.vnet.net> |
I am trying to create a very simple fractal, but I am not having any success.
I'd like to learn how to do this recursively, and hoping someone can
give me a bit of a push in the right direction.
It's a simple triangle with triangles at each corner, with triangles
at each corner, etc.
Below, a simple "level 1" graphic.
scale = 0.5;
list1 = Table[{0, 0} + {Cos[i*120*Degree], Sin[i*120*Degree]}, {i, 1,
sides + 1}];
list2 = (Table[#1 + scale*{Cos[i*120*Degree], Sin[i*120*Degree]}, {i,
1, sides + 1}] & ) /@ list1;
Graphics[{Line[list1], Line[list2]}]
Ideally I'd like to have a Manipulate with a slider for the level of
the fractal, the scale applied to each level, and the distance each
corner triangle is from the centre triangle.
Sorry, I know this is simple programming, but I don't have any ideas
how to start.
Tom De Vries
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web