Skip to content

Commit 2eba7e7

Browse files
committed
Missing Spanish translations for Interaction examples section
1 parent 57a7c32 commit 2eba7e7

File tree

2 files changed

+31
-30
lines changed

2 files changed

+31
-30
lines changed

src/data/examples/es/10_Interaction/28_ArduinoSensor.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
/*
2-
* @name Arduino sensor data via WebJack
3-
* @description WebJack is a way to read data from an Arduino (and other sources)
4-
* using audio -- it basically turns your Arduino into an audio modem.
5-
*
2+
* @name Datos de un sensor Arduino vía WebJack
3+
* @description WebJack es una forma de leer datos de un Arduino (y otras fuentes)
4+
* usando audio... básicamente convierte tu Arduino en un modem de audio.
5+
*
66
* https://github.com/publiclab/webjack
7-
*
8-
* Note: WebJack and p5-webjack libraries must be added to your index.html as follows:
7+
*
8+
* Importante: Las bibliotecas WebJack y p5-webjack deben ser agregadas a tu index.html de la siguiente manera:
99
* <pre><code class="language-markup">&lt;script src="https://webjack.io/dist/webjack.js">&lt;/script></code></pre>
1010
* <pre><code class="language-markup">&lt;script src="https://jywarren.github.io/p5-webjack/lib.js">&lt;/script></code></pre>
11-
*
12-
* Working example: https://editor.p5js.org/jywarren/sketches/rkztwSt8M
13-
*
14-
* Testing audio: https://www.youtube.com/watch?v=GtJW1Dlt3cg
15-
* Load this sketch onto an Arduino:
11+
*
12+
* Ejemplo practico: https://editor.p5js.org/jywarren/sketches/rkztwSt8M
13+
*
14+
* Audio de prueba https://www.youtube.com/watch?v=GtJW1Dlt3cg
15+
* Carga este lienzo en un Arduino:
1616
* https://create.arduino.cc/editor/jywarren/023158d8-be51-4c78-99ff-36c63126b554/preview
17-
* Arduino will output audio from pin 3 + ground. Use microphone or an audio cable.
17+
* Arduino emitirá el audio desde el pin 3 + tierra. Usa el micrófono o un cable de audio.
1818
*/
1919

20-
function setup() {
20+
function setup() {
2121
createCanvas(400, 400);
2222
noStroke();
2323
fill('#ff00aa22');
2424
receiveSensorData(handleData);
25-
}
25+
}
2626

2727
function handleData(data) {
2828

29-
console.log(data); // output the values to log
30-
// data[0] is the 1st value, data[1] 2nd, etc.
29+
console.log(data); // emitir los valores a registrar
30+
// data[0] es el primer valor, data[1] el segundo, etc.
3131

32-
// draw stuff! Browse http://p5js.org/reference/
32+
// Dibuja! Navega http://p5js.org/reference/
3333
background('#ddd');
3434
ellipse(100, 200, data[0]+10, data[0]+10);
3535

src/data/examples/es/10_Interaction/29_kaleidoscope.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,48 @@
11
/*
2-
* @name Kaleidoscope
3-
* @description Un kaleidoscope es un instrumento óptico con dos o más superficies reflectantes inclinadas entre sí en ángulo. Este ejemplo intenta replicar el comportamiento de un caleidoscopio. Establezca el número de reflexiones en la variable de simetría y comience a dibujar en la pantalla. Ajuste el tamaño del pincel con la ayuda del control deslizante. La pantalla clara como dice borra la pantalla. El botón Guardar descargará un archivo .jpg del arte que ha creado.
2+
* @name Caleidoscopio
3+
* @description Un caleidoscopio es un instrumento óptico con dos o más superficies reflectantes inclinadas entre sí en ángulo. Este ejemplo intenta replicar el comportamiento de un caleidoscopio. Establezca el número de reflexiones en la variable de simetría y comience a dibujar en la pantalla. Ajuste el tamaño del pincel con la ayuda del control deslizante. La pantalla clara como dice borra la pantalla. El botón Guardar descargará un archivo .jpg del arte que ha creado.
44
*/
5-
// Symmetry corresponding to the number of reflections. Change the number for different number of reflections
6-
let symmetry = 6;
5+
// Simetría correspondiente al número de reflejos.
6+
// Cambia el valor para obtener un número diferente de reflexiones
7+
let symmetry = 6;
78

89
let angle = 360 / symmetry;
910
let saveButton, clearButton, mouseButton, keyboardButton;
1011
let slider;
1112

12-
function setup() {
13+
function setup() {
1314
createCanvas(710, 710);
1415
angleMode(DEGREES);
1516
background(127);
1617

17-
// Creating the save button for the file
18+
// Creando el botón para guardar para el archivo
1819
saveButton = createButton('save');
1920
saveButton.mousePressed(saveFile);
2021

21-
// Creating the clear screen button
22+
// Creando el botón para borrar la pantalla
2223
clearButton = createButton('clear');
2324
clearButton.mousePressed(clearScreen);
2425

25-
// Creating the button for Full Screen
26+
// Creando el botón para la pantalla completa
2627
fullscreenButton = createButton('Full Screen');
2728
fullscreenButton.mousePressed(screenFull);
2829

29-
// Setting up the slider for the thickness of the brush
30+
// Configurando el deslizador para el grosor del pincel
3031
brushSizeSlider = createButton('Brush Size Slider');
3132
sizeSlider = createSlider(1, 32, 4, 0.1);
3233
}
3334

34-
// Save File Function
35+
// Función para guardar el archivo
3536
function saveFile() {
3637
save('design.jpg');
3738
}
3839

39-
// Clear Screen function
40+
// Función para limpiar la pantalla
4041
function clearScreen() {
4142
background(127);
4243
}
4344

44-
// Full Screen Function
45+
// Función para pantalla completa
4546
function screenFull() {
4647
let fs = fullscreen();
4748
fullscreen(!fs);
@@ -55,7 +56,7 @@ function draw() {
5556
let my = mouseY - height / 2;
5657
let pmx = pmouseX - width / 2;
5758
let pmy = pmouseY - height / 2;
58-
59+
5960
if (mouseIsPressed) {
6061
for (let i = 0; i < symmetry; i++) {
6162
rotate(angle);

0 commit comments

Comments
 (0)