Bharamind

Illusions / Café wall

Café wall illusion

Level lines with a false tilt.

Measured from the image

Sliders

Make your own Café wall image

How the effect works

A café wall pattern stacks rows of black and white tiles. Each row slides sideways against the row above. Gray mortar lines run between the rows. Every mortar line is flat and level, yet the lines look like wedges, open on one side and closed on the other.

Your visual system treats the border between a light tile and a dark tile as one edge to lock onto. The sideways shift of each row pulls the mortar line a small step toward one side. The pull alternates along the line. Your brain adds the pulls together and reports a slope. Gregory and Heard named this idea border locking. Treat any single explanation as a working model.

The numbers on this page come from the image itself. The build script reads the mortar angle from the pixels and reports zero degrees for every line. Set the row shift to zero and the tiles form a plain checkerboard. The slope vanishes. Set the shift to half a tile and the slope looks strongest. A shift of one full tile puts the rows back in step, so the effect falls away at both ends of the range. The sweep table below tracks a geometric proxy for this, one row per shift value.

Measured at the default settings

Image size: 520 by 334 px. The build script read these values from the rendered pixels.

Mortar Rows Y
[40, 82, 124, 166, 208, 250, 292]
Mortar Thickness Px
2
Mortar Angle Degrees
0
Mortar Spacing Px
42
Row Shift Px
20

Where the effect weakens

The table sweeps Row shift as % of one tile (0 = no illusion, 50 = strongest) and scores a geometric proxy from 0 to 1: Row offset from the nearest aligned position, as a share of half a tile. The proxy comes from the image geometry. The proxy measures geometry and not perception. Your own eyes decide what you see. Rows below 0.5 are marked weak.

Weak range: 0 to 20, 80 to 100 %. Proxy at the default setting: 1.

shiftPercent (%)ProxyRow Shift PxMortar Angle Degrees
00 (weak)00
100.2 (weak)40
200.4 (weak)80
300.6120
400.8160
501200
600.8240
700.6280
800.4 (weak)320
900.2 (weak)360
1000 (weak)400

Try this

History

Only facts confirmed against a source appear here. Where sources disagree, this site leaves the detail out.

More illusions

Entertainment only. Not a vision or health test.