-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (60 loc) · 2.83 KB
/
index.html
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>JigMath</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
<link rel='stylesheet' type='text/css' media='screen' href='equaColor.css'>
<script src='main.js'></script>
<script src='jigmath.js'></script>
<script src='equaColor.js'></script>
<style>
#sortie_equation {
width: 100%;
height: 200px;
background-color: #222;
}
</style>
</head>
<body>
<h1>JigMath : Résolution d'équation</h1>
<div>
<h2>Fonction</h2>
<p>Variables : x et y</p>
<div id="formule_container" class="mediummargin"></div>
</div>
<div class="horizontal">
<h2>Résultat</h2>
<p title="Si vous ne savez pas quelle couleur mettre, ajoutez ` && #FFFFFF`">Formule : <em>z = f(x,y)</em>, avec f votre fonction et z une couleur (12 bits)</p>
<div id="formule_view_container">
<div class="axis_config horizontal">
<div><label for="xmin">x min :</label><input name="xmin" id="xmin" type="number" value="-10"></div>
<div><label for="xmax">x max :</label><input name="xmax" id="xmax" type="number" value="10"></div>
<div><label for="xpoints">points sur x :</label><input name="xpoints" id="xpoints" type="number" value="10"></div>
<div><label for="ymin">y min :</label><input name="ymin" id="ymin" type="number" value="-10"></div>
<div><label for="ymax">y max :</label><input name="ymax" id="ymax" type="number" value="10"></div>
<div><label for="ypoints">points sur y :</label><input name="ypoints" id="ypoints" type="number" value="10"></div>
</div>
<canvas id="formule_output"></canvas>
</div>
</div>
<div>
<h2>Préréglages</h2>
<div class="horizontal">
<div>
<ul class="multicolumn">
<li><a href="?formule=huerotate(%23FF0000,(angle_complexe(y,x)))&xmin=-150&xmax=150&ymin=-75&ymax=75&xpoints=50&ypoints=50">Cercle chromatique</a></li>
<li><a href="?formule=lumiere(%23FF0000,abs( cos(x) -y)<0.1)&xmin=-10&xmax=10&ymin=-4&ymax=4&xpoints=100&ypoints=100">Sinusoïde</a></li>
<li><a href="?formule=lumiere(%23FF0000,exp(-abs(cos(x)-y)))&xmin=-10&xmax=10&ymin=-4&ymax=4&xpoints=100&ypoints=100">Sinusoïde "fondue"</a></li>
<li><a href="?formule=lumiere(%23FF0000,abs(%20log10(x)%20-y)<0.1)&xmin=-10&xmax=10&ymin=-4&ymax=4&xpoints=100&ypoints=100">Log10</a></li>
<li><a href="?formule=lumiere(%23FF0000,abs(%20(x^2%2b2x-3)%20-y)<0.1)&xmin=-10&xmax=10&ymin=-4&ymax=4&xpoints=100&ypoints=100">2nd degré</a></li>
<li><a href="?formule=(((abs(sqrt(x^2%2by^2)-4))%20<%200.4))%20%26%26%20%230000FF&xmin=-10&xmax=10&ymin=-5&ymax=5&xpoints=40&ypoints=40">Cercle</a></li>
</ul>
</div>
<button id="copy_formule_link">Copier le lien des réglages</button>
</div>
</div>
</body>
</html>