554 questions
2
votes
1
answer
86
views
Mandelbrot set tile based rendering
I am working on a mandelbrot renderer to generate zoom videos, it is working pretty well but I am now trying to make it faster.
What I want to implement is a tile based rendering:
I split the image ...
0
votes
0
answers
92
views
Strange black borders on count changes with cmath on my python fractal render
I recently wrote a program which renders the mandelbrot set and encountered some irrelevent issues, which some helpful users solved for me. One user reccommended I change an aspect of my code for ...
3
votes
2
answers
131
views
The output of my fractal program is in 4 inverted quarters
I am trying to make a python program that can render the mandelbrot set. My full program can output an image of the set, but for some reason, it displays it cut up into opposite facing quarters.
This ...
2
votes
1
answer
102
views
Mandelbrot set Coloring Error Around Period-2 Bulb (not colormap related)
I wrote some code to render the Mandelbrot set with continuous coloring, but the bulbs on the period-2 blub are not colored correctly. regions that should not escape are colored as though the escape ...
3
votes
1
answer
105
views
Mandelbrot coordinates to Julia set
I was working on a Mandelbrot set at first, then added a Julia set to the same window. The problem is I don't know the formula for my exact situation. Also, the Julia set slid to the bottom-left side. ...
2
votes
0
answers
130
views
Fastest way to find eigenvalues and Eigenvectors for VERY large matrices
I am trying to find the eigenvectors and eigenvalues for very large square symmetric matrices. They are Laplacian matrices on the vicsek fractal. The matrices are in the scale of (5n ⋅ 4 + 1) where i ...
2
votes
1
answer
95
views
Is there an L-system representation for Polya's Triangle Sweep?
I am currently reading the book "The Fractal Geometry of Nature" by Benoit Mandelbrot. I tried to write a program to visualize some of the curves found in the book by using L-system ...
3
votes
0
answers
55
views
Fractal Nested Transformation off by a few points P5JS
Note: I am not 100% sure if this question belongs here, as I dont know if the error is in the programming or in the math, please excuse me and direct me to where to post it
Hi, I am trying to make an ...
-1
votes
1
answer
92
views
Absolute id of fractal subobjects by layer
I want to create a function to get absolute id of fractal subobject by layer/row and column id. In an fractal object there are repeating subobjects, you can split them into layers. Any object with ...
1
vote
0
answers
109
views
The efficient approximation algorithm of mandelbrot set?
While implementing the mandelbrot set using java, I found that the rendering time of the program is ridiculously slower than other programs.
public class FractalFormula {
private Complex[] ...
0
votes
0
answers
145
views
A function to draw randomized koch snowflake
I have a function, that draws a koch snowflake, but i have to change it to draw a randomized koch snowflake, that means: To obtain it, it is sufficient to rotate the new vertex inward or outward at ...
-1
votes
1
answer
1k
views
Raylib DrawTexture performance
I am wondering about performance in Raylib, especially using the DrawTexture and NewImageFromImage functions. I have the code below, it's written in Go so I am using the go-bindings found here : https:...
5
votes
5
answers
692
views
How to make faster Mandelbrot set plot
Ive written a function which uses turtle to draw a Mandelbrot set, however its very slow (~10's minutes) for any decent resolution, how could I make my code more efficient?
import math, turtle
screen ...
1
vote
1
answer
71
views
How can I convert this iterative loop to a recursive one?
At the moment, I'm working on a fractal renderer for stuff like the Mandelbrot set for my computer science coursework, and I want to use recursion instead of iteration on the function below since it ...
2
votes
1
answer
242
views
Fractal Tree in P5.js
I've been trying to create a simple fractal tree program using P5.js, for displaying on a website, but I seem to be getting unexpected behavior. Code and picture attached.
function setup() {
...
3
votes
0
answers
93
views
Rotating a fractal tree with branches in p5js by x-axis
I'm a newbie in coding and I have been playing with Fractal tree and OOP from the Coding Train videos.
The tree is generated as object trunks with its child branches in constructor function.
class ...
0
votes
2
answers
496
views
Issue: Creating Pythagoras Tree
Symmetric Pythagorean Tree
My code isn't able to produce a symmetric pythagorean tree as shown above.
from turtle import *
from math import sin, cos
def main():
t = Turtle() # Initiate turtle to ...
2
votes
1
answer
435
views
Using an image as orbit trap for coloring a Julia set
Searching the web I couldn't find any example on how to use a bitmap (a raster image) as orbit trap to color a Julia set or Mandelbrot set.
Here Inigo Quilez is explaining the method he uses in only ...
0
votes
0
answers
66
views
How to write recursive C code to plot a Crab Curve?
I am trying to generate a "Crab Curve" (as shown in this link) by using the following recursive C function
/* x1: x-coordinate of first point
y1: y-coordinate of first point
x2: x-coordinate ...
0
votes
1
answer
274
views
Fractal dimension: Using differential box counting
Most of the literature gives the method of estimating fractal dimension for grayscale images using differential box couting methods. But they considered only 8 bit images which has 256 gray levels. ...
0
votes
1
answer
65
views
Mandelbrot displays unprecisely
I am trying to visualize the Mandelbrot set using UnityEngine and C#. What I have right now does not look completely wrong but also not right. The Circular shapes for example are very blurred out. Why ...
2
votes
3
answers
274
views
Newton Fractal Optimization
I have implemented the Newton fractal in C. I was wondering if anyone knows how I can improve the efficiency of the code without using threads or multiple processes. I have tried unrolling the while ...
0
votes
0
answers
136
views
How do I improve my Buddhabrot rendering?
I am trying to create a beautiful render of the Buddhabrot fractal with a mathematical background and I want to make it faster and more importantly, prettier. I have a script (buddhabrot_functions) ...
0
votes
1
answer
148
views
Recursive fractal with python turtler
I am trying to figure out a way to draw this:
but somehow I cant do this. I realize that the image is the same it's just 4 times in the right place. Here is the code that I have so far, can somebody ...
0
votes
1
answer
126
views
Optimizing common lisp arithmetic
I'm trying to convert Python -> CL for a program that calculates x,y color values for the Mandelbrot set.
The python version takes about 1.2 seconds to complete. I tried using the CL cookbook for ...
0
votes
1
answer
396
views
Fractal dimension with the Mass-radius method
I have some images for which I want to calculate the Mass-Radius dimension to determine the fractal characteristics in the image. Here is one of them :
Ottawa.png:
The mass dimension defines the ...
1
vote
1
answer
134
views
Drawing Koch's curve without recursion in Julia
I want to draw a Koch curve in Julia without recursion. My strategy is to divide the given line into three segments using the segPoints function:
function seg_points(startPoint, endPoint, n=3)
...
1
vote
1
answer
204
views
How to set limits with mandelbrot set
I'm currently coding a Mandelbrot set using matplotlib with a zoom function to infinitely zoom in on any section of it, however when I zoom in the new data that's calculated is off-center from the ...
1
vote
1
answer
222
views
Box counting function for fractals not working
im making a python program to take an image and determine the fractal dimension with different grid sizes for the box counting. i had previously had it working and it got deleted and i cant remember ...
0
votes
0
answers
46
views
Fractals function in C [duplicate]
I'm still a student in C. I need to do a practical task for this semester but I can't. I've tried everything, but it doesn't seems to work.
What I need to do is to create a fractal which is a figure ...
0
votes
2
answers
3k
views
Koch's Snowflake using Turtle
I'm currently doing a project where I need to create Koch's Snowflake. I decided to use turtle for this assignment. The user can enter an "order" which determineres the amount of sides the ...
2
votes
0
answers
375
views
Fractal Information Dimension and Correlation Dimension
I have a task to compute fractal dimensions of a given image (of a fractal). Specifically, I want to compute the dimension of information and the dimension of correlation (Grassberger, 1983; ...
1
vote
2
answers
329
views
Tkinter images and geometry creation
I've tried to do a star fractal drawing a star using tkinter and putting an image as a background.
from tkinter import *
from PIL import ImageTk, Image
import tkinter as tk
app = Tk()
app.title(&...
0
votes
1
answer
420
views
How to make a beautiful mesh of the Mandelbulb?
I know how to render a beautiful Mandelbulb with ray-tracing, as this one.
But how to get a beautiful Mandelbulb as a 3D mesh? The Mandelbulb can be constructed as an isosurface, and I tried to do ...
1
vote
2
answers
198
views
How to extract a coastline of the lake for fractal analysis
I am new to ImageJ software. I want to extract the boundary of the lake which I am analyzing. I am outlining the method that I saw in a article. The author says:
" As an example we take the ...
0
votes
1
answer
63
views
Create a Sierpinksi Triangle using 0L-System with Python
I need to create a Sierpinksi Triangle using 0L-System with Python.
See here: enter image description here
I'm stuck here, I can't complete the triangle.
My code:
from turtle import *
def sierpinksi(...
4
votes
1
answer
304
views
My Mandelbrot Set displays wrong outlines when plotting with few iterations
I'm writing a program that plots the Mandelbrot set in C.
I've been able to display it and it looks fine however when I lower the number of iterations I get this effect that generates what I can only ...
3
votes
0
answers
308
views
How to zoom/move into the Mandelbrot set
I'm doing the Mandelbrot set in c as a school project.
This is my code:
int mandelbrot(int x, int y, t_data *data)
{
double complex c;
double complex z;
double cx;
double ...
-2
votes
1
answer
281
views
Zooming in on mandelbrot in python
This is my current code which is currently creating two images instead of zooming in. How would I change the code to create on fractal that zooms in its self? Thank you so much!
import numpy as np
...
0
votes
1
answer
472
views
Generating points within a Menger Sponge (fractal shape)
I am trying to generate a lattice of points in the shape of a Menger sponge or Sierpinski sponge.
https://en.wikipedia.org/wiki/Menger_sponge This link details how the shape is mathematically ...
0
votes
1
answer
139
views
Fractal drawing not showing up in tkinter canvas
Im trying to make a program that plots different julia sets and am first trying to plot the mandelbrot set. However, when i try to plot something on the tkinter canvas nothing shows up. I've also ...
0
votes
0
answers
91
views
Merge multiple threads into one in Python
I wrote a very basic, poorly optimized fractal generator.
However, it has one major flaw: the iterating function diverges() that is used to verify whether a complex number is in the Mandelbrot set or ...
0
votes
0
answers
63
views
How to plot smaller polygons at the sides of a bigger polygon?
I am not well versed in MATLAB however I need to use it to complete a project, I need to write a code which creates a big polygon and "n" small polygons , where "n" is the number ...
1
vote
0
answers
196
views
Is there a faster way to render the Mandelbrot set for an animation?
I'm trying to code the Mandelbrot set as a fun project. I did it on my own, so it probably isn't optimized very well. I have a few questions about how to make my code better and how to add certain ...
-1
votes
1
answer
256
views
Fractal dimension (box counting) over images don´t save correctly in cvs file
I am using an algorithm to measure fractal dimention (https://francescoturci.net/2016/03/31/box-counting-in-numpy/)
or box counting method over 3 images:
1
2
3
My adapted code is:
`
#importing ...
1
vote
1
answer
330
views
Why does my Fractal Noise have lines outlining a grid
I will give some context to the function that I wrote:
getFractalPointHeight() is a function that is supposed to return the height of the fractal noise based on the coordinates of a Perlin noise image ...
1
vote
1
answer
469
views
glsl fractal shader for raylib not working correctly
https://github.com/bananaboy139/fractal/tree/OpenGL-shader
https://github.com/bananaboy139/fractal/blob/OpenGL-shader/images/2.png?raw=true
this is the original image I made with zig.
https://github....
1
vote
1
answer
297
views
how to draw image pixel by piexel in swing
I recently created a program to explore Mandelbrot's fractal and after calculated the image I drew it but in a weird way. How can I paint it in clean way? The only way I found is to override the paint ...
0
votes
1
answer
251
views
Complex number type and functions Open CL C through C# Wrapper
I am making an application in WPF C# that generates fractals. I am using this code that someone made to create a OpenCL kernel and run it in C#:
https://www.codeproject.com/Articles/1116907/How-to-Use-...
0
votes
0
answers
90
views
How to create a curved line vector plot of a triangle in Python?
Question
Suppose one has 3 random coordinates with 3 random functions that describe the continuous lines between them*, how would one create a vector plot in Python that allows for smooth lines after ...