Fractal tree: Difference between revisions
Content added Content deleted
imported>Qn1 (Use library defined M_PI instead of "manual" precision.) |
Alextretyak (talk | contribs) m (→{{header|11l}}: new way of specifying file open mode) |
||
Line 30: | Line 30: | ||
drawTree(outfile, x2, y2, len * ScaleFactor, theta - DeltaAngle) |
drawTree(outfile, x2, y2, len * ScaleFactor, theta - DeltaAngle) |
||
V outsvg = File(‘tree.svg’, |
V outsvg = File(‘tree.svg’, WRITE) |
||
outsvg.write(|‘<?xml version='1.0' encoding='utf-8' standalone='no'?> |
outsvg.write(|‘<?xml version='1.0' encoding='utf-8' standalone='no'?> |
||
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'> |
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'> |