Click here to Skip to main content
15,894,410 members
Articles / Desktop Programming / Win32

Realtime Animation of a Mandelbrot Zoom in a Win32 Console with Visual C++ 6.0

Rate me:
Please Sign up or sign in to vote.
4.16/5 (26 votes)
14 Jul 2010CPOL5 min read 69K   1.5K   28  
This article describes how to create a Realtime animation of a Mandelbrot Zoom in a Win32 Console with Visual C++ 6.0


#ifndef CTEXTMANDELBROT_H
#define CTEXTMANDELBROT_H

#include "CTextMode.h"


class CMandelzoom: public  CTextMode
{
	public:
		CMandelzoom();
		CMandelzoom( int );
		~CMandelzoom ();

		void MichaelJanssonInfo(void);
		void putpixel (unsigned int x, unsigned int y, unsigned char c);
		void initFractal(double x0,double y0,double x1,double y1);
		int getFractalColor(int x,int y);
		void  calculateFractal();
		void zoom();
		void key2(void);
		void Realtime_Animate_At_60_Frames_Per_Second();



};

#endif CTEXTMANDELBROT_H

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Sweden Sweden
About me:
I attended programming college and I have a degree in three most famous and successful programming languages. C/C++, Visual Basic and Java. So i know i can code. And there is a diploma hanging on my wall to prove it.
.
I am a professional, I am paid tons of cash to teach or do software development. I am roughly 30 years old .

I hold lectures in programming. I have also coached students in C++, Java and Visual basic.

In my spare time i do enjoy developing computer games, and i am developing a rather simple flight simulator game
in the c++ programming language using the openGL graphics libray.

I've written hundreds of thousands of code syntax lines for small simple applications and games.

Comments and Discussions