Pythagoras tree: Difference between revisions
Content added Content deleted
m (→{{header|Rust}}: Image restoration) |
m (→{{trans|Rust}}: Image restoration) |
||
Line 1,041: | Line 1,041: | ||
</html></syntaxhighlight> |
</html></syntaxhighlight> |
||
==={{trans|Rust}}=== |
==={{trans|Rust}}=== |
||
[[File: |
[[File:PythagorTreeJS.svg|400px]]<br> |
||
Run this script from the browser console (F12) or from the <script> tag of an html document. |
Run this script from the browser console (F12) or from the <script> tag of an html document. |
||
<syntaxhighlight lang="javascript">let base = [[{ x: -200, y: 0 }, { x: 200, y: 0 }]]; |
<syntaxhighlight lang="javascript">let base = [[{ x: -200, y: 0 }, { x: 200, y: 0 }]]; |