Advanced FractalsAdvanced Source Code

Mandelbrot Beetle in C++ OpenGL, Java (Jframe awt) and Python Pygame

This is a Mandelbrot’s Beetle Plotter, which allows different users to explore the fractal, and then save their favorite fractals in a lightweight database, since it only saves the 4 coordinates of the screen, and the algorithm takes care at any time to regenerate the fractal from those 4 data.

Software that connects to a SQLite database, that allows to save the favorite fractals of the registered users in the database.

The same program has been developed in 4 different languages: C++, Python, Java and Javascript. You can access the source code of the Javascript version for free from here.

C++ Version:

Developed in C++ language, OpenGL was used for the plotter, Sqlite for a local database (persistence), the object oriented paradigm and the event oriented paradigm of the keyboard and mouse was used in the plotter.

Python Version:

Developed in Python language, Pygame was used for the plotter, Sqlite for a local database (persistence), the object-oriented paradigm in some files, the structured paradigm in other files, and the event-oriented paradigm of the keyboard and mouse was used in the plotter.

Java Version:

Developed in Java language, Jframe and awt were used for the plotter, Sqlite for a local database (persistence), the object oriented paradigm and the event oriented paradigm of the keyboard and mouse was used in the plotter.

Javascript version:

Developed in Javascript language, HTML5 Canvas was used for the plotter and interface, native arrays and dictionaries were used for the database and persistence (serialization) was done by saving the database in JSON format in a MyJSON.com repository, using API Rest. The structured paradigm was used and the event-driven paradigm of keyboard and mouse was used in the plotter. More information about this version from here.

Test user

You can create your own user, but if you want to see your favorite test fractals use the user ‘loco’ and the password ‘1234’, without quotes.

Get the SOURCE CODE of Mandelbrot Beetle and increase your programming experience:

The same program has been developed in 3 different languages: C++ OpenGL, Python and Java. Using a SQLite database.

  • In this code you will find:
    • How to paint on the screen using the GLUT library for OpenGL in Visual C++.
    • In the Python example you will see how to paint on the screen using the Pygame library.
    • In the Java example you will see how to paint on the screen using the libraries java.awt.Graphics, java.awt.image.BufferedImage, java.awt.Color and the java.awt.event library is used to control the mouse and keyboard events.
    • How to manipulate a SQLite database, where you will see how to create a database in a .db file, how to add records, using SQL language statements in C++, Python and Java languages.

Developed by:

YACSHA – Software & Desing, since 1999, Lima – Perú
The World of Chaos – EL MUNDO DEL CAOS – Unlimited Programming

HISTORY

Version 2 – 01-VI-2024

  • Improvedment: The Interface is translated from Spanish to English
  • Improvedment: Minor changes to description and creditsPorting to VC++ 2017.

Version 1 – 05-VIII-2019

  • First version in Spanish

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button