On the Subject of Floor Lights

Similar to a certain needy, but this one will kill you if you take the spotlight incorrectly.

The module consists of a 6×6 tile platform which can display 4 different colors on each tile. Each color indicates a different function that can happen on the tile.

Before the module generates a pattern (at the start of the bomb), the initial toggle of all the tiles is off. After a stage occurs, the platform will show 3 lit tiles with different colors.

The platform has already generated a pattern internally, but the display will take about 2 seconds to show the pattern generated.

Based on the color shown on the tile, toggle the states of the lit tile and its surrounding tiles. You will use the toggle state of the previous stage (if there is no previous stage, use the initial toggle state at the start of the bomb) and modify it so you can generate the toggle state for the current stage. Toggle the tiles in reading order. You can locate the function of each color below.

Color Effect
The tile that is lit and tiles that are orthogonally adjacent to it are toggled (off to on / on to off). This effect does not loop.
The tile that is lit and tiles that are diagonally adjacent to it are toggled (off to on / on to off). This effect does not loop.
The tile that is lit and all tiles that are adjacent to it are toggled (off to on / on to off). This effect does not loop.
This tile will only show up after all modules have been solved. The tile will indicate that the toggle state of the tile is on.

After solving all non-ignored modules, the platform will toggle off, and the module will now accept input from the defuser. Toggle the tiles on or off so that it will match the last toggle state. Press “Show Time” to submit the answer.

Giving the module an incorrect input will cause a strike to be issued. Striking on the module reveals the number of correct toggles you have given to the module.

If you struck on the module during submission, you are now able to hold the "Show Time" button. Holding for at least 2 seconds will change the button to "Rewind".

Releasing the button after changing to "Rewind" will return you back to the first stage of the module. You can keep pressing "Rewind" to move forward to another stage. However, you can not go back to previous stages if you press the "Rewind" button. After reaching the last stage, pressing "Rewind" will return you to the submission stage. You can only do this once per strike.