This is a JavaScript code which has three symmetries - reflections by both horizontal and vertical axes and a rotation by 180 degrees. Here's the list of allowed characters and how they are transformed.
Original | # | ( | ) | * | + | - | / | 0 | : | < | = | > | H | I | O | X | [ | \ | ] | { | | | } |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Flip horizontally | # | ) | ( | * | + | - | \ | 0 | : | > | = | < | H | I | O | X | ] | / | [ | } | | | { |
Flip vertically | # | ( | ) | * | + | - | \ | 0 | : | < | = | > | H | I | O | X | [ | / | ] | { | | | } |
Rotate 180 degrees | # | ) | ( | * | + | - | / | 0 | : | > | = | < | H | I | O | X | ] | \ | [ | } | | | { |
You can also run this code by SpiderMonkey or Node.js.
Original code:
Flipped horizontally (by CSS):
Flipped vertically (by CSS):
Rotated 180 degrees (by CSS):