Hi every body !
I'm trying to code in Javascript the fractal twindragon ? Can you help me please ?
I know that we have to first code a heighway dragon like that :
var n = 8;
var l = 5;
var x = 100;
var y = 8;
var angle = 120 * Math.PI / 180;

c.translate(300, 200);
terdragon(n);
function terdragon(n) {
if (n <= 1) {
drawLine(l);
} else {
terdragon(n-1);
c.rotate(angle);
terdragon(n-1);
c.rotate(-angle);
terdragon(n-1);
}
}
function drawLine(l) {
c.beginPath();
c.moveTo(x, x);
c.lineTo(y, x);
c.lineTo(y, x);
c.stroke();
c.translate(l, 0);
}

But it's not exactly what I want, so if you can help me... Thank you