Mandelbrot set: Difference between revisions

Content added Content deleted
(Typo ganked entry below: fixed)
Line 2,584: Line 2,584:


=== Alternate version, applicable to text and GUI ===
=== Alternate version, applicable to text and GUI ===
''' Basic generation code '''

==== Basic generation code ====
<lang fsharp>
<lang fsharp>
let getMandelbrotValues width height maxIter ((xMin,xMax),(yMin,yMax)) =
let getMandelbrotValues width height maxIter ((xMin,xMax),(yMin,yMax)) =
Line 2,601: Line 2,600:
</lang>
</lang>


==== Text generation ====
''' Text display '''
<lang fsharp>
<lang fsharp>
getMandelbrotValues 80 25 50 ((-2.0,1.0),(-1.0,1.0))
getMandelbrotValues 80 25 50 ((-2.0,1.0),(-1.0,1.0))
Line 2,638: Line 2,637:
</pre>
</pre>


''' Graphics display '''
==== GUI Generation ====
<lang fsharp>
<lang fsharp>
open System.Drawing
open System.Drawing