Mirror an image horizontally or vertically.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The canvas transform applies a negative scale on the horizontal or vertical axis, then translates the source so its bounds remain inside the output. Pixel order reverses along the chosen axis while dimensions stay unchanged.
data:image/png;base64,iVBORw0KGgo... (image data URL)
PNG with pixels reversed along the horizontal axis
Photo composition, game sprites, and design previews flip images.