With the red gun, I can expand red blocks. The result is either vertical (wall/stairs) or horizontal (floor/ceiling), but I cannot tell beforehand which of the two structures an expansion of red blocks would result in.
What is the logic behind the expansion of red blocks?