Wall Art
There’s a Kangaroo Hiding in This Pattern. Make Your Own Hidden-Image Print.
Turn a simple silhouette into a colourful single-image stereogram and learn how the hidden shape works.

There’s a Kangaroo Hiding in This Pattern. Make Your Own Hidden-Image Print.
At first glance this looks like a very determined confetti machine has exploded. Hidden in the pattern is a kangaroo. Relax your focus in the right way and the animal can appear at a different depth from the background.
This is a single-image stereogram, sometimes called a Magic Eye picture. The fun bit is that you can make one from a simple shape of your own. A heart, a pet silhouette, a spanner or a little maker's mark can be hidden in a pattern that looks ordinary until someone works out how to look at it.
We made the example in this article from an original generated kangaroo silhouette, then used code to build the actual repeating pattern. A numerical comparison can recover the hidden depth map from the uncompressed result. We have not verified the effect with a human vision test or a physical print. People also differ in whether they can see stereograms, so keep a visible version of the design available rather than making the hidden view the only way to understand it.
What you'll need
You'll need a simple black-and-white shape you own or are allowed to use, plus access to a tool that can make a stereogram from a depth map. ChatGPT with data analysis can help generate the image with code; availability and output downloads vary by account. Alternatively, use a dedicated stereogram program that accepts a depth map. OpenAI explains the data-analysis tool; StereoGen's own guide describes a separate Windows tool.
The target is a digital image you can save. You can try it on screen first and make a print later, once you know the pattern still works at the size you want.
1. Make a shape that will survive the effect

The original generated silhouette for this example. It is an illustration used as input, not a photograph of an animal.
Pick one strong shape with clear edges. The kangaroo's ears, body and tail make a better first test than a photograph of a crowd or a page of tiny handwriting. Details can disappear when the final image is resized or printed.
You can draw your own silhouette, use an image you have the right to adapt, or ask an image tool for a simple white shape on black. Here is the actual brief used for our input:
Create the actual depth-map source image for a Makers Army tutorial on
designing a hidden-image stereogram. A single, recognisable kangaroo in
side profile, sitting upright with one thick long tail and upright ears,
as ONE flat solid WHITE silhouette on a completely BLACK square
background. Big simple distinct shapes, crisp solid edges, centred with
generous clear black margin, full animal visible. No grey, shading, fur
details, environment, gradients, text, symbols, outline around image,
watermark or border. This is deliberately a depth-mask input for a
geometric illusion, not a picture of a real animal.
If you draw your own, keep the original. The white area in this example represents one depth and the black area another. This is a simple two-level test rather than a detailed model of an animal.
2. Put the shape on a depth map

The actual 1,200 × 675 depth map used for the worked example. White and black specify two different pattern spacings.
The depth map is not the finished optical image. It is the instruction sheet for the pattern: where the white shape sits, the repeated pattern shifts a little. The background uses a different spacing.
For the example, the square kangaroo was placed in the middle of a wide black canvas. That left room around the tail and ears and stopped the subject touching an edge. A busy or thin source makes the reveal harder to read, so begin with a bold shape before trying a complicated photograph.
You can use the following prompt as a starting point in a chat that can run code. Attach your own black-and-white shape first:
Use the attached black-and-white silhouette to make a single-image
random-dot stereogram, not a side-by-side pair of photographs.
Place the complete white silhouette in the centre of a black
1200-by-675 depth map. Create a colourful repeating pattern with a
120-pixel background repeat. Where the white shape appears, change
the same-row repeat to 100 pixels. Keep both periods consistent.
Save the actual depth map, the repeated base pattern and the finished
stereogram as separate files. Use lossless output for the final image.
Do not add text or pretend a person has seen the hidden shape. Tell me
how to inspect the result and what you actually tested.
The exact pattern and result may differ each time. If the chat cannot run code or provide image downloads, use a stereogram tool with your depth map instead. A convincing-looking tiled image is not automatically a working stereogram.
3. See the repeated pattern before the shift

The worked example's starting pattern repeated across the canvas, before applying the kangaroo depth map.
This first version has the same horizontal repeat throughout. It's colourful, but it contains no hidden kangaroo. The change comes when parts of the pattern are repeated at a slightly different distance according to the mask.
Our background repeat is 120 pixels. In the white kangaroo area, the code uses 100 pixels. Those numbers are the actual settings for this digital example, not universal settings for every screen or print size. Change the subject, pattern, dimensions or viewing distance and you may need to experiment.
Small, high-contrast, non-directional detail is a sensible starting point. If the individual pattern marks are too large, too faint or blurred by compression, the hidden result may be harder to see. Keep a lossless master and avoid repeatedly saving a screenshot of a screenshot.
4. Save the actual result

The actual generated stereogram. The kangaroo is encoded in changes to the pattern spacing; viewing the effect is not guaranteed for every person or display.
To try it, open the image large enough to see the repeating detail. Some people find it easier to look through the picture rather than directly at its surface, letting their focus relax until repeated sections align. Give your eyes a break if it feels uncomfortable. If you can't see the effect, that is a limitation of the viewing method, not a failure on your part.
The code's own check compared the expected same-row pixel spacing against the generated image. It recovered about 99.9% of the depth-map pixels in the tested area before publication. That verifies the pattern-building calculation; it does not prove someone will see the illusion after a website resizes it or a printer changes it.
Save both the stereogram and its source mask. The mask gives you a useful reveal for someone who can't see the effect and a starting point if you want to change the pattern later.
5. Try another shape
Once you have one working result, swap the kangaroo for a clean silhouette of a familiar object. Keep the first attempt simple and make sure the shape is yours to use. If the result looks like attractive noise but won't reveal anything, check that it is a single-image stereogram and that the two repeat distances are actually different inside the shape.
Try the saved file at its intended size before sharing. If you print it, make a small paper proof and compare it with the screen. Don't assume a pretty thumbnail has survived the site's resizing.
It's a surprisingly good little project: one plain shape, one strange pattern, and an excellent excuse to watch a friend stare at your wall for a while.
Sources
Share this article
Know someone who would enjoy this? Pass it along.
