Skip to content

Commit cce9b22

Browse files
committed
Added Spanish translations of 18_Koch.js and 19_Bubblesort.js
1 parent 348857d commit cce9b22

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/data/examples/es/09_Simulate/18_Koch.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* @name Koch Curve
3-
* @description Renders a simple fractal, the Koch snowflake. Each recursive level is drawn in sequence.
4-
* By Daniel Shiffman
2+
* @name Curva Koch
3+
* @description Renderización de un fractal simple: el copo de nieve de Koch. Cada nivel recursivo se dibuja en secuencia.
4+
* Por Daniel Shiffman.
55
*/
66

77
let k;

src/data/examples/es/09_Simulate/19_Bubblesort.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
2-
* @name Bubble Sort
3-
* @description Sorts the randomly distributed bars
4-
* according to their height in ascending order
5-
* while simulating the whole sorting process.
6-
* Took references from Coding Challenge by The Coding Train.
2+
* @name Ordenamiento de Burbuja
3+
* @description Ordena las barras distribuidas aleatoriamente
4+
* según su altura en orden ascendente mientras simula todo el
5+
* proceso de clasificación.
6+
* Se usaron referencias del 'Coding Challenge' de 'The Coding Train'.
77
*/
88

99
let values = [];
@@ -31,7 +31,7 @@ function draw() {
3131
}
3232

3333
// The bubbleSort() function sorts taking 8 elements of the array
34-
// per frame. The algorithm behind this function is
34+
// per frame. The algorithm behind this function is
3535
// bubble sort.
3636
function bubbleSort() {
3737
for(let k = 0;k<8;k++){
@@ -42,7 +42,7 @@ function bubbleSort() {
4242
values[j+1] = temp;
4343
}
4444
j++;
45-
45+
4646
if(j>=values.length-i-1){
4747
j = 0;
4848
i++;
@@ -64,4 +64,4 @@ function simulateSorting(){
6464
fill(50);
6565
rect(i*8 , height, 8, -values[i],20);
6666
}
67-
}
67+
}

0 commit comments

Comments
 (0)