Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5323

Simple fractal

From Tom De Vries <tidetabletom@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Simple fractal
Date 2011-10-02 06:40 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j69112$rdd$1@smc.vnet.net> (permalink)

Show all headers | View raw


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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Simple fractal Tom De Vries <tidetabletom@gmail.com> - 2011-10-02 06:40 +0000

csiph-web