実例 再帰的な木

再帰的な木

これは、再帰を通じてシンプルな木のような構造を描画する例です。 分岐角度は、水平なマウス位置に基づいて計算されます。マウスを左右に動かして角度を変更してください。 これは、ProcessingのRecursive Tree Exampleに基づいています。

Creative Commons BY-NC-SA license badge

再帰的な木: Based on Dan Shiffman's Recursive Tree Example. Revised by Darren Kessner. From 2024 onwards, edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.

You can find the code history of these examples here: pre-2023 example, 2023 code. You can suggest improvements by contributing to the current website!