Dragon curve/D/DFL: Difference between revisions

updated
(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; ...")
 
(updated)
Line 4:
 
private import dfl.all;
import std.math, std.range;
 
class DrawForm: Form {
Line 11:
private double startingAngle;
private double side;
private constimmutable iter = 14;
 
this() {
Line 27:
}
 
public int[] getSequence(in int iterations) {
int[] turnSequence;
forforeach (int i =_; 0; i <.. iterations; i++) {
auto copy = turnSequence.dup.reverseretro;
turnSequence ~= 1;
foreach (turn; copy) {
Line 67:
Application.run(new DrawForm);
}
catch(ObjectException oe) {
msgBox(oe.toString()msg, "Fatal Error", MsgBoxButtons.OK, MsgBoxIcon.ERROR);
result = 1;
}
Anonymous user