• August 03, 2021, 08:37:21 PM

Login with username, password and session length

 


Lux Glynn TreeMandelprinter++Phantom Burning Ship
Mandelprinter++
Previous Image | Next Image
Description: C++ code that generates the fractal seen in the comment
Stats:
Views: 192
Total Favorities: 0 View Who Favorited
Filesize: 81.43kB
Height: 764 Width: 1010
Discussion Topic: View Topic
Keywords: c++ mandelbrot fractal text 
Posted by: wes September 18, 2017, 06:38:16 AM

Rating: Has not been rated yet.
Total Likes: 0

Image Linking Codes
BB Code
BB Thumbnail Image Code
BB Medium Image Code
0 Members and 1 Guest are viewing this picture.

Comments (1)

wes
Fractal Friend
**
Offline Offline

Posts: 14



View Profile
September 18, 2017, 06:42:48 AM
Code: [Select]
/*................................*........................
..................................**.......................
................................******.....................
.........................*...**.******.....................
..........................********************.............
.......................*********************...............
............*.*.*......************************............
.............*********************************.............
.........*.**********************************..............
********************************************...............
.........*.**********************************..............
.............*********************************.............
............*.*.*......************************............
.......................*********************...............
..........................********************.............
.........................*...**.******...................*/
//..............................******....fractalforums.org
#include <complex>//..............**......the possibilities
#include <iostream>//.............*............are infinite
using namespace std;int main(){for(int y=0;++y<22;){for(int
x=0;++x<60;){complex<float>z,c={3*(float)(x)/60-2,2.5// wes
*(float)(y)/22-1.25};int i=0;while(abs(z)<2&&++i<12)z=pow(z
,2)+c;cout<<(i<12?'.':'*');}cout<<'\n';}cout<<endl;}// 2017

Return to Gallery


Powered by SMF Gallery Pro