-
Notifications
You must be signed in to change notification settings - Fork 1
/
indexFractal.html
73 lines (65 loc) · 3.25 KB
/
indexFractal.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Fractal test</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.6.0/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/addons/p5.sound.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<script src="./Version-optimizada/Sound.js"></script>
</head>
<body>
<div class="flex">
<script src="Fractal.js"></script>
</div>
<div class="cointainer text-center">
<div class="row gy-5">
<div class="col-6 col-md-4">
<label for="proporcion" class="form-label">Proporción</label>
<input type="range" class="form-range" min="0.2" max="1" step="0.1" id="proporcion" value="0.5">
</div>
<div class="col-6 col-md-4">
<label for="zoom" class="form-label">Zoom</label>
<input type="range" class="form-range" min="50" max="200" step="10" id="zoom" value="100">
</div>
<div class="col-6 col-md-4" class="mb-3">
<label for="imagen" class="form-label">¡Fractalizate!</label>
<input class="form-control form-control-sm" id="imagen" type="file" accept="image/*">
</div>
</div>
<div class="row gy-5">
<div class="col-6 col-md-4">
<label for="iteraciones" class="form-label">Iteraciones</label>
<input type="range" class="form-range" min="1" max="5" id="iteraciones" value="5">
</div>
<div class="col-6 col-md-4">
<label for="numeroVertices" class="form-label">Numero de vertices</label>
<input type="range" class="form-range" min="3" max="8" id="numeroVertices" value="4">
</div>
<div class="col-6 col-md-4">
<button id="boton">¡Descarga tu fractal!</button>
</div>
</div>
<div class="row gy-5">
<div class="col-6 col-md-4">
<label for="colorBackground" class="form-label">Color de fondo</label>
<input type="color" id="colorBackground" value="#ffffff">
</div>
<div class="col-6 col-md-4">
<label for="colorFractal" class="form-label">Color del fractal</label>
<input type="color" id="colorFractal" value="#000000">
</div>
<div class="col-6 col-md-4">
<label for="colorContornoFractal" class="form-label">Color del contorno del fractal</label>
<input type="color" id="colorContornoFractal" value="#000000">
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
</body>
</html>