Anonymous user
Mandelbrot set: Difference between revisions
→{{header|F Sharp|F#}}
(Typo ganked entry below: fixed) |
|||
Line 2,584:
=== Alternate version, applicable to text and GUI ===
▲==== Basic generation code ====
<lang fsharp>
let getMandelbrotValues width height maxIter ((xMin,xMax),(yMin,yMax)) =
Line 2,601 ⟶ 2,600:
</lang>
<lang fsharp>
getMandelbrotValues 80 25 50 ((-2.0,1.0),(-1.0,1.0))
Line 2,638 ⟶ 2,637:
</pre>
''' Graphics display '''
<lang fsharp>
open System.Drawing
|