Programming a Fractal.

  • #1

Main Question or Discussion Point

Can someone tell me how to do this?
 

Answers and Replies

  • #2
berkeman
Mentor
56,656
6,559
Tell us what you know so far. Do you know what an initiator and a generator are, in the context of fractals?
 
  • #3
Tell us what you know so far. Do you know what an initiator and a generator are, in the context of fractals?
I only know what a compiler is and don't know how to work it. I am completely new to this but want to get ahead so that when we study this next year I will not fall behind too far.

I am guessing they are as they sound.


SD
 
  • #4
Borek
Mentor
28,328
2,716
It won't hurt if you will be a little bit more specific. Do you want to write a program that will draw a fractal? Any fractal, or do you have something selected already?
 
  • #5
Perhaps a fractal that is already programmed and the software used so that I can read it and see where it comes from. A fractal that when you zoom in on it, it continues going in and in forever. Any fractal. I would like to know how to write a program that will zoom in on a fractal wherever you click it and it will zoom as long as you click it.
I have never programmed before and this is completely new to me.
 
  • #6
jim mcnamara
Mentor
3,747
2,032
The math and the program code to generate a fractal are both simple.
The graphics part eats your lunch. Why don't you download winfract and play with it?
It's still free.
Then you'll know at least the names of the things you're talking about. Plus, it is a lot of fun to mess with.

winfract link is at the bottom of this page http://www.dwponline.com/fractals/

Here is a simple mandelbrot set generator that uses glut (graphics), if you want to see what the code looks like:
http://www.cs.unm.edu/~angel/BOOK/INTERACTIVE_COMPUTER_GRAPHICS/FIRST_EDITION/programs/mandelbrot.c
 
  • #7
Borek
Mentor
28,328
2,716
I have never programmed before and this is completely new to me.
So you are probably aiming too high. Start with something simpler. Write program that'll display Fibonacci numbers or something. Displaying graphic and getting input from mouse will require already some fluency in programming.
 
  • #8
Ok, how do I do that? The Fibonacci sequence is SOOOOOOOO cool. I just had to say that. Nature is amazing, like wow.
 

Related Threads for: Programming a Fractal.

  • Last Post
Replies
8
Views
5K
  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
18
Views
8K
  • Last Post
Replies
8
Views
7K
  • Last Post
Replies
5
Views
5K
  • Last Post
Replies
10
Views
3K
  • Last Post
Replies
4
Views
1K
Replies
1
Views
1K
Top