|
@@ -77,8 +77,8 @@ In addition, you will need to use the function that paints the grid:
|
77
|
77
|
|
78
|
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)
|
79
|
79
|
|
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.
|
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.
|
|
80
|
+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 explained above that changes the coordinates $(x,y)$ to an index.
|
|
81
|
+
|
82
|
82
|
---
|
83
|
83
|
|
84
|
84
|
---
|
|
@@ -95,11 +95,11 @@ Although the archive `tools.cpp` is not visible, there is an array called `mColo
|
95
|
95
|
|
96
|
96
|
---
|
97
|
97
|
|
98
|
|
-## Sesión de laboratorio:
|
|
98
|
+## Laboratory Session:
|
99
|
99
|
|
100
|
|
-### Ejercicio 1: Implementar las funciones para hacer funcionar los botones de dibujar líneas
|
|
100
|
+### Exercise 1: Implement the functions that operate the buttons for drawing lines
|
101
|
101
|
|
102
|
|
-####Instrucciones
|
|
102
|
+####Instructions
|
103
|
103
|
|
104
|
104
|
1. Carga a `QtCreator` el proyecto `GridPlotter`. Hay dos maneras de hacer esto:
|
105
|
105
|
|