On the Subject of Perspective Stacking
Looks like we need another interactive...
This module contains a 5×5 grid of squares with a display to the right of it and 8 buttons above it.
Initially all squares will be light gray except for one which will be either red, green, blue, cyan, magenta or yellow. The display will be showing the current stage count out of the total number of stages, a number from 1 to 5, and a XYZ graph with one arrow darkened (+X is pointing right, +Y is pointing up and +Z is pointing down left).
Every time a non-ignored module is solved the module will advance one stage. On each new stage the colored square may change along with the number on the display and the darkened arrow on the graph. Once all stages have been shown the display will show “INPUT”, two numbers from 0-3 and all squares will become light gray.
The expected input is a 5×5×5 cube that is stored internally in the module viewed at a certain rotation (ignoring empty subcubes). The subcubes of this cube follow the coordinate system below.
When the module is displaying stages, the top left of the 5×5 grid is an A1 subcube, and the bottom right is an E5 subcube. The number on the display is tacked onto each square’s coordinate for that stage.
At each stage take the colored square and fill it in on the cube at its coordinate. If that subcube is already filled then override it with the new color. Then, apply the force of gravity given by the darkened arrow to all subcubes in the cube. If at any point two subcubes of the same color collide due to gravity they merge into one subcube.