GithubHelp home page GithubHelp logo

sathiiii / fractals-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.78 MB

This is the first project for the 2nd year course CO225 (Introduction to Java Programming). The aim of the project was to build a GUI application that can plot two of the most popular fractals: Mandelbrot set and the Julia set using inheritance as much as possible.

License: Apache License 2.0

Java 100.00%

fractals-generator's Introduction

About the project

My main goal for the project was to somehow generate the fractal colouring scheme similar to the Mandelbrot picture on wikipedia: Picture of the Mandelbrot set found on Wikipedia

I was able to generate two colouring schemes and following are pictures of both Mandelbrot set and the Julia set plotted using those two approaches:

Smooth Colour Scheme Gradient Colour Scheme
Mandelbrot Set using the smooth colour scheme Mandelbrot Set using the gradient colour scheme
Julia set using the smooth colour scheme Julia set using the gradient colour scheme

The program can also display the real and imaginary axes on the plot. The complex number corresponding to the mouse pointer location is displayed under the mouse pointer. The following is a screenshot of the program showing the axes and the position:

Usage

java Fractal Mandelbrot [REALMIN REALMAX IMAGMIN IMAGMAX] [MAXITR]
OR
java Fractal Julia [C_REAL C_IMAG] [MAXITR]

The first argument must be the type of the fractal (either the Mandelbrot set or the Filled Julia set) to be drawn and is required.
If the first argument provided is Mandelbrot, the following arguments REALMIN, REALMAX, IMAGMIN, IMAGMAX which specifies the Region Of Interest and MAXITR which specifies the maximum number of iterations are optional.
If not provided the default values of the Region Of Interest are -1, 1, -1, 1 and the default value of MAXITR is 1000.
If the first argument provided is Julia, the following arguments C_REAL, C_IMAG which specifies the real and imaginary values of the constant complex number and MAXITR are optional.
If not provided the default values of the C_REAL, C_IMAG are -0.4, 0.6 and the default value of MAXITR is 1000.

fractals-generator's People

Contributors

sathiiii avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.