To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI demonstrates how to use computers to represent abstract fractals by calculating and evaluating functions recurrently and assigning a color representation for each result..
Description
Here is a brief description of the example:
Program to draw a Julia set fractal (n=2)
This program evaluates f(z) = z^2 + c with z = X+Yi and c = A+Bi being X,Y,A and B real numbers. This program iterates using:
Xn+1 = (Xn)^2-(Yn)^2 +a
Yn+1= 2(Xn)(Yn) + b
The resulting image has 1920x1080 pixels (a value that can be increased or reduced). The program uses IMAQsetcolorpixel.vi from the Vision Developer Module and Vision Acquisition Software for Labview 2014.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Nice! Using the colortables found here und the While Loop's R instead of Y to index those colortables, your vi is rendering somthing like this:
I really like it, thanks for sharing!.
I modified the code to generate the following image based on the code I found here.
VI saved as FRACTALrender.vi
Hope you like it.
Great VI. I played with it for while and ended up adding some UI features. It is posted at Draw your own fractal 2
Marc Dubois