<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Simple FreeBASIC Fractal</title>
		<link>http://gamedesign.wikidot.com/forum/t-9736/simple-freebasic-fractal</link>
		<description>Posts in the discussion thread &quot;Simple FreeBASIC Fractal&quot; - This is an Extremely simple Mandelbrot Fractal created in FreeBASIC.</description>
				<copyright></copyright>
		<lastBuildDate>Sat, 11 Jul 2026 05:22:03 +0000</lastBuildDate>
		
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-9736#post-26608</guid>
				<title>Re: Simple FreeBASIC Fractal</title>
				<link>http://gamedesign.wikidot.com/forum/t-9736/simple-freebasic-fractal#post-26608</link>
				<description></description>
				<pubDate>Thu, 31 May 2007 17:06:06 +0000</pubDate>
				<wikidot:authorName>Gosha</wikidot:authorName>				<wikidot:authorUserId>19971</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The last one worked for me .. the first one didn't .. and i'm on XP :D</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-9736#post-26559</guid>
				<title>Re: Simple FreeBASIC Fractal</title>
				<link>http://gamedesign.wikidot.com/forum/t-9736/simple-freebasic-fractal#post-26559</link>
				<description></description>
				<pubDate>Thu, 31 May 2007 13:46:59 +0000</pubDate>
				<wikidot:authorName>bmatthew1</wikidot:authorName>				<wikidot:authorUserId>11779</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Okay u9, try the following Programme. I've tried it on Ubuntu and it worked. :)</p> <div class="code"> <pre><code>#include &quot;GL/gl.bi&quot; #include &quot;GL/glu.bi&quot; Screen 18, 32, 2, 2, 1 SetMouse ,,1 Sub Main () Dim X As Integer Dim Y As Integer Dim Count As Integer Dim Size As Double Dim R As Double Dim I As Double Dim RTmp As Double Dim Rs As Double Dim Iss As Double glMatrixMode (GL_PROJECTION) glLoadIdentity () glOrtho (0, 1023, 767, 0, -1.0, 1.0) glMatrixMode (GL_MODELVIEW) glDisable (GL_DEPTH_TEST) glClearColor (0.0, 0.0, 0.0, 0.0) glClear (GL_COLOR_BUFFER_BIT) glBegin (GL_POINTS) For X = 0 to 1023 For Y = 0 to 767 Count = 64 Size = 0 R = 0 I = 0 While Size &lt; 4 And Count &gt; 0 RTmp = R Rs = R * R Iss = I * I R = (Rs - Iss) + (X - 672) / 320 I = (2 * (RTmp * I)) + (Y - 384) / 320 Size = Rs + Iss Count = Count - 1 Wend glColor3f (0, 0, Count / 64) glVertex2i (X, Y) Next flip If ( inkey$ = chr$( 27 ) ) then Exit Sub EndIf Next Do Flip ' IMPORTENT, the 'Flip' Command doesn't just Swap the Drawing Buffers. ' It will also make your Application more responsive to keypresses. :) If ( Inkey$ = Chr$( 27 ) ) Then Exit Sub EndIf Loop While ( Inkey$ &lt;&gt; Chr$( 27 ) ) End Sub Main</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-9736#post-26425</guid>
				<title>Re: Simple FreeBASIC Fractal</title>
				<link>http://gamedesign.wikidot.com/forum/t-9736/simple-freebasic-fractal#post-26425</link>
				<description></description>
				<pubDate>Wed, 30 May 2007 21:38:40 +0000</pubDate>
				<wikidot:authorName>u9</wikidot:authorName>				<wikidot:authorUserId>12755</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>hehe again?!? :p</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-9736#post-26423</guid>
				<title>Re: Simple FreeBASIC Fractal</title>
				<link>http://gamedesign.wikidot.com/forum/t-9736/simple-freebasic-fractal#post-26423</link>
				<description></description>
				<pubDate>Wed, 30 May 2007 21:30:26 +0000</pubDate>
				<wikidot:authorName>bmatthew1</wikidot:authorName>				<wikidot:authorUserId>11779</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hmmm, I never tried it with the Linux Version of FreeBASIC.</p> <p>I'll try and run it myself later as I've just installed Ubuntu <strong>again</strong>. :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-9736#post-26394</guid>
				<title>Re: Simple FreeBASIC Fractal</title>
				<link>http://gamedesign.wikidot.com/forum/t-9736/simple-freebasic-fractal#post-26394</link>
				<description></description>
				<pubDate>Wed, 30 May 2007 19:40:37 +0000</pubDate>
				<wikidot:authorName>EKVirtanen</wikidot:authorName>				<wikidot:authorUserId>12785</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi.</p> <p>I tested with .17 linux. Needed to remove Option Explicit and change Call Main to Main.<br /> Compiles fine but when running it, nothing happends.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-9736#post-23964</guid>
				<title>Re: Simple FreeBASIC Fractal</title>
				<link>http://gamedesign.wikidot.com/forum/t-9736/simple-freebasic-fractal#post-23964</link>
				<description></description>
				<pubDate>Thu, 17 May 2007 13:27:48 +0000</pubDate>
				<wikidot:authorName>bmatthew1</wikidot:authorName>				<wikidot:authorUserId>11779</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If running this Programme in 1024 x 768 Full-Screen is causing problems, try this&#8230;</p> <p>Change&#8230;</p> <div class="code"> <pre><code>Screen 20, 32, 2, 3, 1</code></pre></div> <p>to&#8230;</p> <div class="code"> <pre><code>Screen 18, 32, 2, 2, 1</code></pre></div> <p>That will Open a 640 x 480 Window. :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-9736#post-23847</guid>
				<title>Simple FreeBASIC Fractal</title>
				<link>http://gamedesign.wikidot.com/forum/t-9736/simple-freebasic-fractal#post-23847</link>
				<description></description>
				<pubDate>Wed, 16 May 2007 21:44:56 +0000</pubDate>
				<wikidot:authorName>bmatthew1</wikidot:authorName>				<wikidot:authorUserId>11779</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>This Fractal Programme is based on One written in Basic4GL. :)</p> <p>It is very simple but I haven't got around to Converting my more Colourful Fractal Designs to FreeBASIC.</p> <img src="http://matthew-4gl.wikispaces.com/space/showimage/Fractal_For_GDN_Wikidot.png" alt="Fractal_For_GDN_Wikidot.png" class="image" /> <p>Once it's Displayed on the Screen press 'Esc' to Exit. ;)</p> <div class="code"> <pre><code>#include &quot;GL/gl.bi&quot; #include &quot;GL/glu.bi&quot; Option Explicit Screen 20, 32, 2, 3, 1 SetMouse ,,0 'X and Y Co-Ordinates are omitted as Mouse is Switched off. Sub Main () If not ScreenPtr Then Exit Sub End If Dim X As Integer Dim Y As Integer Dim Count As Integer Dim Size As Double Dim R As Double Dim I As Double Dim RTmp As Double Dim Rs As Double Dim Iss As Double glMatrixMode (GL_PROJECTION) glLoadIdentity () glOrtho (0, 1023, 767, 0, -1.0, 1.0) glMatrixMode (GL_MODELVIEW) glDisable (GL_DEPTH_TEST) glClearColor (0.0, 0.0, 0.0, 0.0) glClear (GL_COLOR_BUFFER_BIT) glBegin (GL_POINTS) For X = 0 to 1023 For Y = 0 to 767 Count = 64 Size = 0 R = 0 I = 0 While Size &lt; 4 And Count &gt; 0 RTmp = R Rs = R * R Iss = I * I R = (Rs - Iss) + (X - 672) / 320 I = (2 * (RTmp * I)) + (Y - 384) / 320 Size = Rs + Iss Count = Count - 1 Wend glColor3f (0, 0, Count / 64) glVertex2i (X, Y) Next flip If ( inkey$ = chr$( 27 ) ) then Exit Sub EndIf Next Do Flip ' IMPORTENT, the 'Flip' Command doesn't just Swap the Drawing Buffers. ' It will also make your Application more responsive to keypresses. :) If ( Inkey$ = Chr$( 27 ) ) Then Exit Sub EndIf Loop While ( Inkey$ &lt;&gt; Chr$( 27 ) ) End Sub Call Main</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>