lib/tools/middle

if total number of images are not even, then one canvas is not required. In this case place this in the middle of the layout

Source:
Parameters:
Name Type Description
matrix array

col,row counts of the game.

Returns:

index of the mid-element otherwise -1

Type
integer