Barnsley fern: Difference between revisions
m
→{{header|C}}: Remove vanity tags
Thundergnat (talk | contribs) m (→{{header|Ring}}: Remove vanity tags) |
Thundergnat (talk | contribs) m (→{{header|C}}: Remove vanity tags) |
||
Line 45:
This implementation requires the [http://www.cs.colorado.edu/~main/bgi/cs1300/ WinBGIm] library. Iteration starts from (0,0) as required by the task however before plotting the point is translated and scaled as negative co-ordinates are not supported by the graphics window, scaling is necessary as otherwise the fern is tiny even for large iterations ( > 1000000).
<lang C>
#include<graphics.h>
#include<stdlib.h>
Line 110 ⟶ 108:
}
</lang>
=={{header|C++}}==
[[File:BFCpp.png|200px|thumb|right]]
|