Kaynağa Gözat

README-en.md edited online with Bitbucket

Jose R Ortiz Ubarri 8 yıl önce
ebeveyn
işleme
70910a12c1
1 değiştirilmiş dosya ile 5 ekleme ve 6 silme
  1. 5
    6
      README-en.md

+ 5
- 6
README-en.md Dosyayı Görüntüle

@@ -65,21 +65,20 @@ The drawing will be on a grid. The tools will be used by clicking any cell in th
65 65
 ---
66 66
 
67 67
 
68
-## Bibliotecas
69
-
70
-Para este proyecto necesitarás utilizar las funciones de `QtGlobal` para la implementación del círculo:
68
+## Libraries
71 69
 
70
+In this project, you will need to use the following `QtGlobal` functions for the implementation of the circle. 
72 71
 
73 72
 * `int qFloor(qreal v)` // Devuelve el "piso" del valor $v$.
74 73
 * `qreal qSqrt(qreal v)` // Devuelve la raíz cuadrada del valor $v$.
75 74
 * `qreal qPow(qreal x, qreal y)` // Devuelve el valor de $x$ elevado a la potencia $y$.
76 75
 
77
-También necesitarás utilizar la función que pinta en la cuadrilla: 
76
+In addition, you will need to use the function that paints the grid:
78 77
 
79
-* `void switchOn(int x, int y, const QColor& color);` // Pinta la celda $(x,y)$ con el color dado. (No tienes que preocuparte por `QColor` porque se pasa a la función por parámetro.)
78
+* `void switchOn(int x, int y, const QColor& color);` // Paints the cell $(x,y)$ with the given color. (You don't have to worry about `QColor` because it is passed by the function's parameter)
80 79
 
81 80
 Aunque no se ve en el archivo `tools.cpp`, hay una arreglo llamado `mColors` que contiene el color de todas las celas de la cuadrilla. Esto te ayudará a saber cuál color está en una celda: `mColors[columns * y + x]`. Nota que el índice de este arreglo se calcula utilizando la conversión para cambiar coordenadas $(x,y)$ a índices que explicamos arriba.
82
-
81
+Although the archive `tools.cpp` is not visible, there is an array called `mColors`that contains the color of all the cells in the grid. This will help you know which color is in the cell: `mColors[columns * y + x]`. Note that the index of the array is calculated using the conversion that changes the coordinates $(x,y)$ to an index that was explained above. 
83 82
 ---
84 83
 
85 84
 ---