Click here to Skip to main content
15,900,378 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: drawing algorithms Pin
sarah_malik7-May-07 2:42
sarah_malik7-May-07 2:42 
GeneralRe: drawing algorithms Pin
El Corazon7-May-07 5:31
El Corazon7-May-07 5:31 
GeneralRe: drawing algorithms Pin
sarah_malik7-May-07 6:52
sarah_malik7-May-07 6:52 
GeneralRe: drawing algorithms Pin
El Corazon7-May-07 7:22
El Corazon7-May-07 7:22 
GeneralRe: drawing algorithms Pin
sarah_malik7-May-07 10:56
sarah_malik7-May-07 10:56 
GeneralRe: drawing algorithms Pin
El Corazon7-May-07 11:25
El Corazon7-May-07 11:25 
GeneralRe: drawing algorithms Pin
El Corazon7-May-07 15:34
El Corazon7-May-07 15:34 
GeneralRe: drawing algorithms Pin
El Corazon7-May-07 16:20
El Corazon7-May-07 16:20 
The Grand Negus wrote:
How 'bout them Mandelbrots?


Alive and well, and producing images through infinity. Smile | :)

http://users.erols.com/ziring/mandel.html[^]
http://www.codeproject.com/cpp/mandelbrot_obfuscation.asp[^]

or

void mandel(int xpt, int ypt)<br />
{<br />
	long double x=0;<br />
	long double y=0;		//converting from pixels to points<br />
	long double xnew=0;<br />
	long double ynew=0;<br />
<br />
	for(int k=0;k<=initer;k++)  // Each pixel loop<br />
	{<br />
	//The Mandelbrot Function Z=Z*Z+c into x and y parts<br />
<br />
	xnew=x*x-y*y + xpt*pixcorx+Minx;<br />
	ynew=2*x*y   + Maxy-ypt*pixcory;<br />
	x=xnew;<br />
	y=ynew;<br />
	if ( (x*x+y*y)>4 ) break;  // Break condition<br />
	}                      // End each pixel loop<br />
<br />
	int color = k;<br />
	if (color>15) color=color%15;<br />
	if (k>=initer)<br />
	putpixel(xpt,ypt,0);<br />
	else<br />
	putpixel(xpt,ypt,color);<br />
<br />
	newcolor=color;<br />
}




_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

GeneralRe: drawing algorithms Pin
sarah_malik8-May-07 0:55
sarah_malik8-May-07 0:55 
QuestionHow to code for flipping an image myself ? Pin
coolguynp5-May-07 8:44
coolguynp5-May-07 8:44 
AnswerRe: How to code for flipping an image myself ? Pin
Mark Salsbery5-May-07 9:10
Mark Salsbery5-May-07 9:10 
AnswerRe: How to code for flipping an image myself ? Pin
Hamid_RT22-May-07 2:52
Hamid_RT22-May-07 2:52 
AnswerRe: How to code for flipping an image myself ? Pin
stevepqr29-May-07 4:12
stevepqr29-May-07 4:12 
QuestionOpenGL problems Pin
XTAL2565-May-07 2:57
XTAL2565-May-07 2:57 
AnswerRe: OpenGL problems Pin
Rilhas19-May-07 10:59
Rilhas19-May-07 10:59 
GeneralRe: OpenGL problems Pin
XTAL25619-May-07 14:21
XTAL25619-May-07 14:21 
QuestionHElpppppppppppp Pin
HassanKU4-May-07 9:37
HassanKU4-May-07 9:37 
AnswerRe: HElpppppppppppp Pin
Mark Salsbery4-May-07 10:22
Mark Salsbery4-May-07 10:22 
Questionclueless Pin
Xraider Xenocide3-May-07 15:53
Xraider Xenocide3-May-07 15:53 
AnswerRe: clueless Pin
Christian Graus6-May-07 11:30
protectorChristian Graus6-May-07 11:30 
GeneralRe: clueless Pin
El Corazon7-May-07 5:36
El Corazon7-May-07 5:36 
AnswerRe: clueless Pin
Hamid_RT22-May-07 2:50
Hamid_RT22-May-07 2:50 
Questionhow to put a standard opengl in a windows form Pin
sinosoidal2-May-07 5:42
sinosoidal2-May-07 5:42 
AnswerRe: how to put a standard opengl in a windows form Pin
Jeff J Anderson6-May-07 22:32
Jeff J Anderson6-May-07 22:32 
Questionopen 2 window at the same time--->openGL???? Pin
Miss_ Petrovna1-May-07 8:50
Miss_ Petrovna1-May-07 8:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.