summaryrefslogtreecommitdiff
path: root/h.html
blob: efae9651bfcafe5fef6a71b1e6b1e67922430aba (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
44
45
46
47
48
49
<html>
    <head>
        <link rel="shortcut icon" type="image/png" href="hfavicon.png">
        <title>H</title>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <link rel='stylesheet' href='css/style.css'>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    </head>

    <body>
        <div id="navbar"></div>
        <script src="navbar.js"></script>

        <h2 style='font-family: Times New Roman'>H</h2>

        <script src='js/h.js'></script>

        <p>Line lengths controls the size of the Hs, width and height control
        how big the H can get, and wait between iterations changes how quickly the
        Hs are generated. Click begin to start, and once you think it has
        grown enough, click stop. You can then download the H or continue to make
        more Hs by clicking begin again.</p>

        Line lengths: <input type='number' id='lineLength' value=6><br>
        Width: <input type='number' id='w' value=500><br>
        Height: <input type='number' id='h' value=500><br>
        Wait between iterations (ms): <input type='number' id='delay' value=1000>
        <br>
        Chance that a new branch will form:
        <input type='number' min=0 max=1 id='chance' value=1 step=0.1>
        <br>


        <button onclick='beginH();'>Begin</button><br>
        <button onclick='stop();'>Stop</button><br>

        <canvas width=100 height=100 id='canvas'></canvas>

        <footer>
            <p class='footer'>This program is licensed under the
            <a href='http://autoart.neocities.org/LICENSE.txt'>GNU General public license</a>
            </p>
        </footer>

    </body>



</html>