-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminación de funciones y variables que no se usaban para el funcionamiento de la aplicación
- Loading branch information
Showing
1 changed file
with
1 addition
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,8 @@ | ||
let canvasElement; | ||
let canvasCtx; | ||
let xHandLeft; | ||
let yHandLeft; | ||
let xHandRight; | ||
let yHandRight; | ||
let x1Right; | ||
let x1Left; | ||
let x2Right; | ||
let x2Left; | ||
let x3Right; | ||
let x3Left; | ||
|
||
|
||
// Guarda el canvas de la app para posteriormente dibujar en él | ||
function getP5Canvas(){ | ||
canvasElement = document.getElementById("p5canvas"); | ||
canvasCtx = canvasElement.getContext("2d"); | ||
} | ||
|
||
function setCoordsLeft(x, y){ | ||
this.xHandLeft = x; | ||
this.yHandLeft = y; | ||
} | ||
|
||
function setCoordsRight(x, y){ | ||
this.xHandRight = x; | ||
this.yHandRight = y; | ||
} | ||
|
||
function getXHandLeft(){ | ||
return this.xHandLeft; | ||
} | ||
|
||
function getYHandLeft(){ | ||
return this.yHandLeft; | ||
} | ||
|
||
function getXHandRight(){ | ||
return this.xHandRight; | ||
} | ||
|
||
function getYHandRight(){ | ||
return this.yHandRight; | ||
} |