C++ Programming GalleryFractals
Fractal explorer in C++ (Fractal X), using graphics.h BGI library

Mandelbrot’s Beetle Fractal Plotter
Graphics the mandelbrot set in a resolution of 320x200x256, has mouse zoom, fractal animation with color palette variation, contains assembler subroutines, for the above uses the powerful class “Color256” written with assembler subroutines, which is similar to “graphics.h” but in a resolution of 320x200x256 and allows changing the color palette, (can be used to view a photo).
Developed by:
YACSHA – Software & Desing, since 1999, Lima – Perú
The World of Chaos – EL MUNDO DEL CAOS – Unlimited Programming
You can DOWNLOAD the SOURCE CODE and executable software for FREE from here:
Join The World of Chaos Developer Community😃
Contribute to the project on Github!HISTORY…
- Version 2 – 14-IV-2024
- Update fractals/fractalxbgi – Porting to VC++ 2017 using winbgi
- The menu in text mode is made independent of the functions to plot the fractal, in such a way as to have the GUI and the view separated
- The code of the old MouseBGI 1.x library is adapted to the new version 3 adapted to WinBGI
- The use of the rectangulo_inverso function is discarded for “rectangle” function using etwritemode(XOR_PUT), which does the same thing but natively
- Stop using the winbgi putpixel function and use the CScreenBitmap class instead, to speed up the drawing of the fractal on the screen
- The Change_Fractal_Palette function is enabled, to be able to change the color palette of the fractal using the + and – keys, using the CScreenBitmap version 2 class
- The About screen is enabled showing the software credits
- The *.pcx files loaded in the credits are changed to *.bmp files, in such a way as to load them natively using the readimagefile function of WinBGI
- Translate GUI, credits and history version, from spanish to english
- Add colors to console GUI
- The modifications made in version 1.3 are added to the History version
- After each plot the coordinates (xmin,xmax) and (ymin, ymax) are shown. In addition to formatting the elapsed seconds and the number of iterations displayed
- The change parameters option is added, to change the parameters of maximum divergence, maximum iteration, and initial coordinates of the corners of the complex plane, this last option is great for loading a particular area of the mandelbrot beetle that you liked, just knowing its coordinates
- Version 1.3 – 02-XI-1999
- The Blind plotting mode is added (fuction Mandelbrot1), in such a way as to show the plot progressively as if it were a blind
- The TesseralX plotting mode is added (function Mandelbrot2), which uses an algorithm that divides the screen into 4 quadrants and in each quadrant analyzes whether the 4 corners of the quadrant have the same color, if so, a rectangle filled with the color of one of them is painted the corners and otherwise the same algorithm is carried out in each of the quadrants recursively. This algorithm is more efficient when the fractal has several areas with the same color, since it avoids iterating the complex equation in the quadrants that have the same color in their corners.
- Version 1.2 – 08-X-1999
- Plots the Mandelbrot set, using only the SVGA256.BGI bgi driver, has 5 graphic resolution modes and 256 colors
- The pcxbgi.h and mousebgi.h headers are used to load graphic files and the mouse pointer respectively using only the bgi. previous mode that swept the screen from top to bottom.
- With the + and – keys the colors of the palette are rotated clockwise and counterclockwise respectively.
- the routine for zooming is improved, now only a rectangle is made proportional to the screen so that the scale of the fractal is not changed
- a credits screen is added.
- Version 1.1 – 02-V-1999
- Plots only the Mandelbrot set, using the interrupt 10h subfunction 13h (320×200 resolution and 256 colors) includes graphical subroutines in assembly language, included in the Color256.h header
- The colors of the fractal palette are rotated clockwise
- A routine is implemented for zooming, using the mouse.
- Version 1.0 – 17-IX-1999
- Plot Julia’s sets, using the 16-color VGA bgi mode