Questions tagged [fractals]

Fractals are interesting mathematical objects with a special behaviour in a complex-plane [Re, Im], depending on their initial position ( location ). Visualised in popular media, typically as shapes with infinite dimensionality that exhibit a sort of self-similarity. Well-known fractal sets include the named Mandelbrot set, Julia sets, and Phoenix sets. Tree-like fractal drawings are also common.

Fractals are shapes that are self-similar.
enter image description here
Their infinite-dimensionality could be best viewed in animated computer simulations.

Fractal sets such as the Mandelbrot set, Julia sets, and Phoenix sets are commonly used for a fast, approximate ( iterative ) method of how to determine a point's membership in such a set in a complex-plane [Re, Im]. For example, if the absolute value of an iterative complex function ( defining the Mandelbrot, or another set ), the module, never grows beyond a given treshold, then the original point in complex-plane [Re, Im], the argument of the complex-function, is considered a member of the set.

Image presented by **flashliquid** Fractal trees - drawings that resemble trees in nature can be drawn in high detail with recursive algorithms.

544 questions
10
votes
1 answer

Sierpinski's Triangle Pygame Recursive

So for my current university paper we are meant to create a Sierpinksi Triangle and Recursively draw new triangles inside. The original code we got was this: import sys, pygame # a function that will draw a right-angled triangle of a given size…
Tiaan Swart
  • 614
  • 5
  • 17
9
votes
1 answer

Why is my dragon fractal incomplete

I have translated the code from javascript to c# which can be found by going to this excellent demo at http://fractal.qfox.nl/dragon.js My translation is intended to produce just a single dragon upon clicking the button but I think I have missed…
descf
  • 1,302
  • 1
  • 12
  • 31
9
votes
1 answer

On-the-fly Terrain Generation Based on An Existing Terrain

This question is very similar to that posed here. My problem is that I have a map, something like this: This map is made using 2D Perlin noise, and then running through the created heightmap assigning types and color values to each element in the…
Maltor
  • 553
  • 6
  • 16
9
votes
4 answers

How to generate a Mandelbrot with T-SQL?

Learning a little about T-SQL, and thought an interesting exercise would be to generate a Mandelbrot set with it. Turns out someone already has (and recently, it appears). I'll let someone else post it as an answer, but I'm curious what…
Adam Davis
  • 91,931
  • 60
  • 264
  • 330
9
votes
3 answers

Small bug in Koch's Snowflake Implementation

So I'm programming a recursive program that is supposed to draw Koch's snowflake using OpenGL, and I've got the program basically working except one tiny issue. The deeper the recursion, the weirder 2 particular vertices get. Pictures at the…
user1265486
9
votes
3 answers

Making C# mandelbrot drawing more efficient

First of all, I am aware that this question really sounds as if I didn't search, but I did, a lot. I wrote a small Mandelbrot drawing code for C#, it's basically a windows form with a PictureBox on which I draw the Mandelbrot set. My problem is, is…
Omer Tuchfeld
  • 2,886
  • 1
  • 17
  • 24
9
votes
3 answers

Generating fractal Swirl

I need to draw a fractal swirl using the algorithm Iterated Function System. There are coefficients for this fractal: 0.745455 -0.459091 0.406061 0.887121 1.460279 0.691072 0.912675 -0.424242 -0.065152 -0.175758 -0.218182 3.809567 6.741476…
Nostia
  • 93
  • 6
8
votes
1 answer

Generating Custom Color Palette for Julia set

I need an algorithm or a method to generate a color palette to Color the Julia set images. When using the escape time algorithm to generate the image I for example come up with the following image: However I need some way to generate a custom color…
Abdul Fatir
  • 6,159
  • 5
  • 31
  • 58
7
votes
2 answers

Fractal Applications on Android

What is the best way to generate fractal curves on android? Should I use NDK? and if not What is the right class to extend View or SurfaceView I've generated two fractals extending View and overriding onDraw(), when the iteration count is big…
Tiko
  • 990
  • 7
  • 18
7
votes
1 answer

Can't find a way to color the Mandelbrot-set the way i'm aiming for

I've been successful in coloring the Mandelbrot-set although I can't zoom in very far until it becomes "blurry" and the pattern stops. I fix this by increasing the max_iteration, this works but I get very few colors at *1 magnification and lot's of…
MorganS42
  • 656
  • 4
  • 21
7
votes
1 answer

Implementing smooth colouring in mandelbrot set

I am trying to colour MandelBrot using HSV values and the PIL Library. Even after multiple tries fiddling with HSV values, I could not achieve the desired effect. here is what I currently have Here is the desired effect This is the code that I am…
darkermuffin
  • 919
  • 1
  • 7
  • 16
7
votes
4 answers

Tkinter create image function error (pyimage1 does not exist)

I'm a student from the outside world with no previous programming experience. I have been learning Python as an extension of my math class. I have been trying to create a program that generates fractals using Tkinter. The code works well on its own,…
Silmarillion101
  • 179
  • 1
  • 1
  • 6
7
votes
1 answer

Improvement to my Mandelbrot set code

I have the following Mandelbrot set code in C. I am doing the calculation and creating a .ppm file for the final fractal image. The point is that my fractal image is upside down, meaning it is rotated by 90 degrees. You can check it by executing my…
user1726549
6
votes
3 answers

How to make a color progression out of a color palette

My goal with this algorithm I'm working on is to output a color progression out of some provided colors. By color progression I mean creating the "fade" effect between two colors (color A, color B) and store every color value ((R,G,B) tuple) in…
6
votes
5 answers

Java Processing 3 PAplet in JavaFX scene as FXNode

I am trying to make a program for visual analyzing Fractal sets. I choose Processing 3 as drawing library and JavaFX for the user interface. There are some screenshots of the current state: My GUI: there is Launcher code: import…
Jan Černý
  • 1,268
  • 2
  • 17
  • 31
1
2
3
36 37