Skip to content

Commit 74c0fb9

Browse files
authored
Update README.md
1 parent 8599383 commit 74c0fb9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ColorGrid/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Instruction format - (OpCode, Operand1, Operand2 and Operand3).
66

77
Currently supported OpCodes:
88
* 0 = set_color_op - Set current color. This color will be used when coloring pixels on the grid.
9-
* 1 = draw_pixel_op - Color a cell at (x,y) position. x=opr1, y=opr2
10-
* 2 = draw_row_op - Fill row of cells at index. index=opr1
11-
* 3 = draw_column_op - Fill column of cells at index. index=opr1
12-
* 4 = randomize_grid - Fill each grid cell with a random color.
9+
* 1 = draw_pixel_op - Color a cell at (x,y) position. Params: x=opr1, y=opr2
10+
* 2 = draw_row_op - Fill row of cells at index. Params: index=opr1
11+
* 3 = draw_column_op - Fill column of cells at index. Params: index=opr1
12+
* 4 = randomize_grid - Fill each grid cell with a random color using seed for randomization. Params: seed=opr1
1313
* 5 = fill_grid_op - Fill all grid cells with current color.
1414
More operations might be added in the future.
1515

@@ -26,6 +26,7 @@ Color Grid has two modes: Normal and Debug. To enable debug mode set GRID_DEBUG
2626
* Call decode_op_data().
2727
* Repeat above two steps for every instruction.
2828
* Set grid size by setting _DbgGridSize x and y values in Inspector.
29+
* If using randomize_grid op, set _DbgSeed value in Inspector.
2930
* Color Grid will call DebugIns() method to execute instructions.
3031

3132
To use Color Grid:

0 commit comments

Comments
 (0)