It’s probably easier to observe them in action than explaining them.
Here’s the original one, composing the maze of diagonal graphics characters (similar to forward and back slashes), both on an emulated Commodore PET:
10 PRINT CHR$(205.5+RND(1));: GOTO 10
https://masswerk.at/pet/?data=base64:MTAgUFJJTlQgQ0hSJCgyMDUuNStSTkQoMSkpOzpHT1RPIDEw&rom=2&list=true&autorun=true
And here the variant discussed here:
10 PRINT CHR$(161.5+RND(1));: GOTO 10
https://masswerk.at/pet/?data=base64:MTAgUFJJTlQgQ0hSJCgxNjEuNStSTkQoMSkpOzpHT1RPIDEw&rom=2&list=true&autorun=true
How it works (here on the example of the original):
As usual, CHR$() provides a character string for the given character number, which will be automatically truncated to an integer. So, CHR$(205.5) produces the string for character code 205. RND() returns a number 0 < n < 1 with an equal probability of being below or above 0.5. If it is greater, the CHR$() expression yields the string for character code 206. So the expression will print either code 205 or code 206 at roughly equal probabilities. Since the PRINT statement ends in a semicolon, the next iteration will print where the last one left, without advancing to a new line. (But, as the line overflows by reaching the right side of the screen, we still continue at the next line, by this filling the entire screen, at which point the “maze” starts to scroll for an animated effect.)
The 2 characters give us 4 “atomic” combinations:
// – a diagonal passage to the lower left
\\ – a diagonal passage to the lower right
/\ – a top corner
\/ – a bottom corner
If we combine these further, we get what starts to resemble a tilted maze:
//\/ a crisscrossing passage
\/\\
//// a series of simple passages
////
\/\/ a passage with a turn at the top
//\\
\\// two passages converging to a cross-like
//\\ blockade in the maze
etc.
So, yes, the secret is in the glyphs and how they combine and line up, with strokes either touching at opposing corners of their 8 × 8 character matrix (forming a corner) or not (touching diagonally for a visual continuation forming a “passage”).