Dragon curve/D/DFL: Difference between revisions
m
Fixed syntax highlighting.
(Created page with "{{libheader|DFL}} Translation of Java <lang d>// dfl dragoncurve -gui -release -O private import dfl.all; import std.math; class DrawForm: Form { private int[] turns; ...") |
m (Fixed syntax highlighting.) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1:
{{libheader|DFL}}
Translation of Java
<
private import dfl.all;
import std.math, std.range;
class DrawForm: Form {
Line 11:
private double startingAngle;
private double side;
private
this() {
Line 27:
}
int[] turnSequence;
auto copy = turnSequence.
turnSequence ~= 1;
foreach (turn; copy) {
Line 67:
Application.run(new DrawForm);
}
catch(
msgBox(
result = 1;
}
return result;
}</
Screenshot: [http://img534.imageshack.us/img534/2324/dfldragoncurve.png]
|