Fractals are shapes that are self-similar and are usually quite detailed. Well-known fractal sets include the Mandelbrot set, Julia sets, and Phoenix sets. Tree-like fractal drawings are also common.
2
votes
1answer
63 views
Creating a Newton fractal based on a polynomial
I developed a program that creates and displays a Newton fractal based on a complex polynomial.
For example, the complex polynomial:
$$z^{3}-1$$
which is what is given as input in the code, will ...
4
votes
1answer
43 views
Rusted Mandelbrot
As my go to first project for a language is a Mandelbrot, I had to implement one in Rust. I'm particularly annoyed by invalid_arg_count, as I feel like there has to ...
2
votes
0answers
34 views
Physical simulation of diffusion-limited aggregates
The following code generates Diffusion Limited Aggregates on a two-dimensional square lattice. Some of the code has been omitted (e.g. support for differing lattice types and dimensions) for code-...
3
votes
1answer
62 views
Mandelbrot image generator with parallel iteration
I'm currently trying to optimize this class I have for fractal generation. The equation is meant to be pluggable; I have used z => z*z + c so that it's not using ...
8
votes
1answer
110 views
Small Python class for Lindenmayer Systems
L-systems are basically rules for recursively rewriting a string, which can be used to characterize e.g. some fractal and plant growth.
I wrote a small class to represent deterministic L-systems and ...
5
votes
1answer
152 views
Koch snowflake in Python with numpy and pygame
I've drawn a Koch snowflake with Python 3. I'm new to the Python world and would appreciate all feedback on how to make the code more Pythonic as I'm not used to these idioms, styles and modules. All ...
31
votes
7answers
3k views
Mandelbrot image generator and viewer
This is a C++ program which outputs a Mandelbrot fractal image in a graphics window and lets the user zoom and pan around the image, generating a new image each time the user does so. I'm using SFML ...
4
votes
2answers
274 views
Printing letters in order like a pyramid
There is this hackerrank question, where we need a rhombus of letters. As to my opinion it can be viewed as some fractal, or similar logic.
Well I solved the question, but I am obviously disappointed ...
5
votes
2answers
269 views
Koch snowflake in Python with Turtle
After finding a piece of code on StackOverflow that drew the Koch snowflake fractal, I made a ton of modifications to it and used it to produce an animation divided in two parts:
Constant size, ...
7
votes
2answers
103 views
Small turtle program using instruction strings to draw patterns
A while ago, I wrote a program that combined L-systems and turtles. This was before I understood OOP (I still don't fully understand classes, or if they are even needed here). I tried to add some ...
11
votes
1answer
144 views
The ugly Christmas tree, Haskell style
Inspired by a few inverse tree ascii art F# questions, I wanted to give it a shot in Haskell.
As seen in the linked questions, the resulting program reads an Int ...
5
votes
1answer
91 views
Multithreaded Mandelbrot Generator Ver 3
I thought Ver 2 was fairly solid but ending up modifying all but one method for Ver 3. Performance for Generate is the same, but I was able to simplify the method ...
10
votes
3answers
456 views
Multithreaded Mandelbrot Generator Ver 2
Update: Version 3 is here.
My first version was an answer I provided to EBrown for his original post titled "Multithreaded Mandelbrot Generator". My answer had many good things in it, but I felt ...
7
votes
1answer
69 views
World's worst Christmas tree
Inspired by this question, I decided to grow my own fractal tree.
The problem is: given an integer \$n\$, \$0 \leq n \leq 5\$, print the \$n\$th iteration of the fractal tree. The tree is probably ...
5
votes
2answers
94 views
Constructing a simple tree with ASCII in F#
This is just a basic HackerRank challenge I was working on to better understand F#. Its purpose is just to print a tree that has a straight 'trunk' of \$n\$, splits into 2 branches which diverge to \$...
7
votes
2answers
120 views
Sierpinski triangle from Pascal triangle
I tried to draw a Sierpinski triangle by shading the even number entries of the Pascal triangle. Could you please suggest improvements?
...
7
votes
2answers
241 views
Mandelbrot Set Fractal
I thought I would give this months community challenge a try. This is my first time using Python.
It does take quite a while to run and it's not very colourful but it works.
...
7
votes
0answers
90 views
Multithreaded Groovy Mandelbrot
Seeing as it's October, I thought I'd do the community challenge. Due to my inexperience coding in Groovy, I decided to give Groovy a go. I'm not sure how well I followed Groovy conventions, and the ...
5
votes
1answer
60 views
Lindenmayer System String Generator in F#
Lindenmayer Systems or L-systems are fractals that can be constructed by applying replacement rules to a string for a certain amount of iterations. For example:
...
12
votes
1answer
211 views
Mandelbrot Streams
A recent Mandelbrot question (Hi @EBrown) in C# inspired me to build my own using the Java 8 parallel streams to implement the parallelism that's useful for computing each pixel value.
The intention ...
10
votes
4answers
470 views
Multithreaded Mandelbrot Generator
I built one of these long ago, and it got lost when I reformatted my SSD (sad day) so here is the new version.
It is very multithreaded, spawning numCores - 1 ...
9
votes
1answer
151 views
Converting ASCII to an image
So after I finished my fractal generator, I decided that text is ugly, at least compared to pictures, so I made a text-to-picture converter:
...
12
votes
1answer
149 views
Fractal generator
Refer to the help message and title of this post for what the code does.
I'm looking for tips on:
Efficiency: While the find-and-replace approach I have works perfectly fine and does so in a ...
3
votes
0answers
90 views
Second attempt at Sierpinski Triangle App
I am a Java programmer trying to learn the ways of Swift. A few days ago, I posted the code for a very simple app that draws a Sierpinski triangle and implements a pretty buggy zoom. I was told to ...
10
votes
1answer
299 views
Fractal rendering fun time
I wrote up a script a while back to let me play around with fractals. The idea was to have direct access to the script that creates the fractal. None of that close, edit, then run hassle; just edit ...
15
votes
1answer
144 views
Creation of Queen Ann's Lace fractal
I've created a program which recreates the Queen Ann's Lace fractal. However, when the amount of points that are being plotted increases, the points are plotted way slower. Is there any way to make it ...
8
votes
2answers
951 views
Mandelbrot fractal with MPI
I'm not very familiar with MPI. I've written this little piece of code to draw the Mandelbrot fractal processing each row of the image in parallel. It works but it's really slow. I've written code to ...