LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 10-06-2009, 04:45 PM   #1
gray53
Member
 
Registered: Jul 2009
Location: Georgia, USA
Distribution: Ubuntu, Puppy
Posts: 52

Rep: Reputation: 15
Fractal generator?


How would you go about generating a fractal based on something similar to these rules?

1. Start with a vertical line segment of length x
2. Construct a line segment of length nine tenths x starting two thirds of the way up the first line segment at a 15 degree angle to the first line segment.
3. Repeat

Thanks

edit: preferably runs on Vista

Last edited by gray53; 10-06-2009 at 07:28 PM.
 
Old 10-06-2009, 05:30 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Google spits out xfractint as a possible fractal generation program. Not sure if it'll help your case or not...
 
Old 10-11-2009, 09:00 AM   #3
ikem
LQ Newbie
 
Registered: Oct 2009
Distribution: SliTaz
Posts: 18

Rep: Reputation: 1
Do you look for a program that does that? Or do you wanna write a program that does that?
 
Old 10-11-2009, 12:28 PM   #4
gray53
Member
 
Registered: Jul 2009
Location: Georgia, USA
Distribution: Ubuntu, Puppy
Posts: 52

Original Poster
Rep: Reputation: 15
I am looking for a program. Thanks, I should have been more specific.
 
Old 10-11-2009, 04:54 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
there is octave , the opensource "matlab"
 
Old 10-12-2009, 05:53 AM   #6
ikem
LQ Newbie
 
Registered: Oct 2009
Distribution: SliTaz
Posts: 18

Rep: Reputation: 1
Check out XaoS*. I think it does what you want*.

*http://xaos.sourceforge.net/
*http://xaos.sourceforge.net/doc-trun...-user-formulas
 
Old 10-13-2009, 06:53 PM   #7
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Here's a little python script to produce the fractal. It works under Linux and Windows 7 so should under Vista. Obviously you'll need to install Python on Vista but this shouldn't be a problem. This is very simple and only produces 70 iterations but you can easily tune it.
Code:
#!/bin/python
import turtle
turtle.reset()
len=300
loops=70
turtle.setup(width=.60,height=.90)
turtle.up()
turtle.sety((-turtle.window_height()/2)+10)
turtle.setx((turtle.window_width()/2)-10)
turtle.down()
turtle.speed("fastest")
turtle.setheading(90)
for i in range(loops):
	turtle.forward(len)
	turtle.backward(len/3)
	len*=(9.0/10)
	turtle.left(15)
raw_input("Strike a key to continue")
It may be easier just playing with the settings in the script rather than programming a Matlab plot or similar.
 
Old 10-13-2009, 10:30 PM   #8
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 48
IFS

The fractal that you're describing lies in a class of fractals called 'IFS', short for 'Iterated Fractal Systems'. Try googling for 'IFS' and 'windows' and I'd bet that you'd find something that would work for you... or you could install python ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Algorithm generator phantom_cyph General 6 05-07-2007 09:09 PM
freeware fractal software rblampain Linux - General 5 06-06-2006 08:25 PM
Traffic Generator Bugger Linux - Software 3 02-20-2006 05:17 AM
php generator webwolf70 Linux - Software 1 10-12-2005 05:26 PM
Any xwindows fractal program like VistaPro of old? hamster Linux - Software 4 04-30-2003 04:58 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration