aboutsummaryrefslogtreecommitdiff
path: root/utils/fractal_tree/index.html
blob: 5c4adf274d367237bcc2328d1eb4ca6ed48da128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>

<html>
    <head>
        <title>cacharle - fractal tree</title>
        <link rel="stylesheet" type="text/css" href="../../style.css"/>
        <meta charset="utf-8"/>
	    <link rel="icon" type="image/png" href="../../favicon.png" />
        <style>
            .settings-item {
                margin-top: 10px;
                display: flex;
                justify-content: flex-start;
                align-items: center;
            }
            .settings-item label {
                margin-right: 5px;
            }
            .settings-item input {
                min-width: 200px;
            }
        </style>
    </head>

    <body><div id="page-wrapper">
        <h1>fractal tree</h1>

        <canvas width="500" height="500" id="tree-canvas"></canvas>

        <div class="settings">
            <div class="settings-item">
                <label>depth</label>
                <input id="depth" min="1" max="11" value="9" type="range"/>
            </div>
            <div class="settings-item">
                <label>angle</label>
                <input id="angle" min="1" max="180" value="45" type="range"/>
            </div>
        </div>

    </div></body>
    <script src="script.js" type="text/javascript"></script>
</html>