-
Notifications
You must be signed in to change notification settings - Fork 0
/
julia.html
122 lines (122 loc) · 3.54 KB
/
julia.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8"></meta>
<title>Julia set</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<header>
<div id="image"></div>
<ul class="navbar">
<li>
<a href="index.html">Home</a>
</li>
<li class="active">
<a href="apps.html">Web APPs</a>
<ul>
<li><a href="derivative.html">Derivative calculator</a></li>
<li><a href="snake.html">Snake</a></li>
<li><a href="tetris.html">Tetris</a></li>
<li><a href="missile_command.html">Missile command</a></li>
<li><a href="maze.html">3D Maze</a></li>
<li><a href="tower_deffense.html">Monster invasion</a></li>
<li><a href="julia.html">Julia set</a></li>
</ul>
</li>
<li>
<a href="projects.html">Projects</a>
<ul>
<li><a href="https://github.com/IceMage144/Algorithms">Algorithms</a></li>
<li><a href="https://github.com/IceMage144/ScrapyCrawlers">Crawlers</a></li>
<li><a href="https://uspgamedev.org/">Gamedev</a></li>
</ul>
</li>
<li>
<a href="events.html">Events</a>
</li>
<li>
<a href="mac0499/index.html">TCC</a>
</li>
<li>
<a href="about.html">About me</a>
</li>
</ul>
</header>
<div class="paper">
<div class="content">
<center>
<p> </p>
<div id="gamediv">
<div class="row">
<div class="column">
<h2>Julia</h2>
<canvas id="julia"></canvas>
</div>
<div class="column">
<h2>Mandelbrot</h2>
<canvas id="mand"></canvas>
</div>
</div>
<p>Real part:</p>
<div class="inputBorder">
<input type="text" id="real"/>
</div>
<p>Imaginary part:</p>
<div class="inputBorder">
<input type="text" id="imaginary"/>
</div>
<p></p>
<p id="res">Resolution: 200</p>
<input type="submit" id="sub" value="Submit" onClick="sub()"/>
<input type="submit" value="+" onClick="increaseResol()"/><input type="submit" value="-" onClick="decreaseResol()"/>
<script>
var a = function(e) {
if (e.keyCode == 13)
document.getElementById('sub').click();
}
document.getElementById('real').onkeypress = a
document.getElementById('imaginary').onkeypress = a
</script>
<script type="text/javascript" src="game_engine.js"></script>
<script type="text/javascript" src="julia_script.js"></script>
</div>
<p> </p>
<p>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-</p>
<div class="description">
<h2>How to use</h2>
<table>
<tbody>
<tr>
<td>
<ul>
<li>Enter an imaginary number at the fields to see the corresponding Julia set on the left canvas</li>
<li>You can hold the Z key and point with the mouse to the Mandelbrot set, so you can see the Julia set of that point on the left canvas</li>
<li>You can increase or decrease the resolution using the "+" and "-" buttons</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<p> </p>
</center>
</div>
</div>
<footer id="footer">
<table class="footer">
<tbody>
<tr>
<td>
<ul class="footer">
<li><a href="https://github.com/IceMage144"><img src="assets/github.png"></a></li>
<li><a href="https://www.facebook.com/joao.gabriel.564813"><img src="assets/facebook.png"></a></li>
<li><a href="mailto:joao.basi@usp.br"><img src="assets/mail.png"></a></li>
</ul>
</td>
</tr>
</tbody>
</table>
</footer>
</body>
</html>