Skip to content

Commit

Permalink
Merge pull request #5 from LabVS-IM-UNAM/Emilio
Browse files Browse the repository at this point in the history
Emilio
  • Loading branch information
daranha authored May 8, 2024
2 parents 67638a7 + f2c4bd8 commit 6a2ac69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NuevoAlgoritmoFractal - Test -/Fractal.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function setup() {
let colorPickerBackground = document.getElementById("colorBackground");
let colorPickerFractal = document.getElementById("colorFractal");
let colorPickerContorno = document.getElementById("colorContornoFractal");
let boton = document.getElementById("boton")

sliderProporcion.addEventListener("input", function () {
PROPORCION = parseFloat(sliderProporcion.value);
Expand Down Expand Up @@ -55,7 +56,7 @@ function setup() {
COLOR_CONTORNO_FRACTAL = this.value;
Dibujar();
})

boton.addEventListener("click", function(){saveCanvas("Fractal")})

}

Expand Down
3 changes: 3 additions & 0 deletions NuevoAlgoritmoFractal - Test -/indexFractal.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
<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">Guardar</button>
</div>
</div>
<div class="row">
<div class="col-6 col-md-4">
Expand Down

0 comments on commit 6a2ac69

Please sign in to comment.