Sub topic 11
Testing a composition: squint, flip and mirror
You can't fully judge balance by looking at a design at full size. Detail pulls your eye toward text, faces and fine edges, and you stop seeing how the whole composition distributes weight. This chapter covers a set of quick tests that strip away detail, change your viewing conditions, or reverse the layout so that balance problems become visible.
It assumes you have read the earlier chapters of this tutorial. You should know what visual weight is, where the axis and optical center sit, and how symmetrical and asymmetrical balance differ. The code examples are optional. The HTML and CSS one needs a browser. The Python one needs Python 3 with Pillow and NumPy.
Why testing beats judging by eye
After an hour on a layout, you know what every element says and where everything is supposed to go. That knowledge biases perception. You read the headline first because you wrote it, and you stop noticing that the right half of the page is nearly empty.
Testing works by removing the information you already have. Each test below takes away one variable (detail, color, orientation or familiarity) and leaves the variable you want to judge, which is how weight is distributed.
| Test | What it removes | What it reveals |
|---|---|---|
| Squint or blur | Fine detail and legibility | Large masses and which ones dominate |
| Grayscale | Hue | Value contrast, which drives weight more than hue does |
| Thumbnail | Size and detail | Whether the composition holds at a glance |
| Flip | Reading habit and familiarity | Hidden lean toward one side |
| Mirror split | Whole-page view | Whether the two halves carry equal weight |
| Centroid check | Subjective judgment | A numeric estimate of where the weight sits |
The squint test
Squinting blurs your vision, so edges soften and small elements merge into their neighbors. What remains is a map of dark and light masses. This is the closest quick equivalent to seeing the composition as pure visual weight.
How to run it:
- Sit or stand at arm's length from the screen, or step back a few paces.
- Narrow your eyes until text is no longer readable.
- Note the two or three biggest masses and where they sit relative to the center.
- Ask whether any one mass pulls the composition toward an edge, and whether anything you intended to be prominent has vanished.
If you can't squint reliably, apply a Gaussian blur to a copy of the design. A radius of about 2 to 4 percent of the shorter side is a reasonable starting point. Increase it until the body text is a smear, then look again.
What to look for
- A single dominant mass. In a symmetrical layout, this should be on the axis. In an asymmetrical one, it should have a counterweight, which can be a smaller but darker or more saturated mass farther from the axis.
- Empty regions. Negative space is fine if it was chosen. If a corner is empty only because nothing was placed there, the blur will make it look like a hole.
- Lost hierarchy. If the main message disappears under blur, it relies on detail rather than weight. That is a hierarchy problem as much as a balance problem.
The grayscale test
Hue contributes less to weight than most beginners expect. A saturated red and a mid-gray of the same lightness feel similar in weight, but a black shape on white is much heavier than either. Converting to grayscale shows you the value structure on its own.
A common failure: a pale yellow button on a white page feels balanced against a navy block because the yellow is vivid in color. In grayscale the button nearly disappears and the navy block dominates. If the layout only balances in color, it depends on a property that some viewers can't perceive. This includes viewers with color vision deficiencies and anyone looking at a printed grayscale copy.
Run the grayscale test and the squint test together. Blur first, then desaturate, and you see only value masses.
The thumbnail test
Shrink the design to roughly 100 to 150 pixels on its long side. At that size, a layout either holds together as a shape or it doesn't. Thumbnails are especially useful for posters, book covers and app icons, which are routinely seen very small. They also work as a quick way to compare several layout options side by side. Put six thumbnails in a row and the one with a lopsided mass is easy to spot.
The flip test
Reversing the layout horizontally is one of the most useful checks. Most of us read left to right (in left-to-right scripts), so we tend to scan a layout starting from the left and may accept a lean without noticing it. A flipped copy looks unfamiliar, so the lean becomes obvious.
What the flip reveals:
- A composition that feels fine but feels "wrong" when flipped likely depends on reading direction. This is not always a defect. Many layouts deliberately put the heaviest element on the left because that is where reading begins. But you should know you are relying on it.
- A mass that looked centered may now appear clearly off to one side.
- A symmetrical layout should look the same flipped. Any difference shows a place where symmetry is only approximate.
Flip the design only horizontally for this test. A vertical flip is a separate check, covered below, because top-heavy versus bottom-heavy is a different question.
The vertical flip
Vertical balance is less forgiving than horizontal balance. Weight placed above the optical center feels lighter than the same weight placed below it, because we associate heavy things with the ground. If you flip a composition upside down and it suddenly feels more stable, the original is probably top-heavy. This is a common problem with large headline blocks above sparse content.
The mirror split
The mirror split tests whether one half of the layout outweighs the other. Draw or imagine a vertical line through the center of the canvas, then compare the two halves.
- Cover the right half and look only at the left. Form an impression of its weight.
- Cover the left half and do the same for the right.
- Repeat with a horizontal line through the optical center, comparing top and bottom.
For a symmetrical layout, the halves should mirror each other in structure. For an asymmetrical layout, they should differ in structure but feel comparable in weight. If one half feels clearly heavier, check the trade-offs: size, contrast, color, density, and distance from the axis. Moving the heavy element closer to the axis, or enlarging or darkening something on the other side, will correct it.
You can also make a literal mirror image. Copy the left half and reflect it onto the right, then compare the result with the original. The differences between the real right half and the reflected left half are exactly where your layout departs from symmetry.
The diagram below shows how these tests fit together as a workflow.
Running the tests in a browser
If you build layouts in HTML and CSS, you can apply the tests with a few CSS filters and a transform. The page below puts the tests behind buttons so you can switch between them. The layout itself is a small asymmetrical example. Save it as an .html file and open it in any browser.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Balance tests</title>
<style>
body { font-family: sans-serif; margin: 1rem; }
.controls button { margin-right: .5rem; }
.stage { margin-top: 1rem; width: 480px; }
.layout {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 1rem;
align-items: start;
padding: 1rem;
border: 1px solid #999;
transition: filter .2s, transform .2s;
}
.large-light { background: #e8eef2; min-height: 12rem; }
.small-dark { background: #1b2a35; color: #fff; min-height: 5rem; padding: .5rem; }
.layout.blur { filter: blur(6px); }
.layout.gray { filter: grayscale(1); }
.layout.blur.gray { filter: blur(6px) grayscale(1); }
.layout.flip { transform: scaleX(-1); }
</style>
</head>
<body>
<div class="controls">
<button data-class="blur">Blur</button>
<button data-class="gray">Grayscale</button>
<button data-class="flip">Flip</button>
</div>
<div class="stage">
<div class="layout" id="layout">
<div class="large-light"></div>
<div class="small-dark">Counterweight</div>
</div>
</div>
<script>
document.querySelectorAll("button[data-class]").forEach(function (btn) {
btn.addEventListener("click", function () {
document.getElementById("layout").classList.toggle(btn.dataset.class);
});
});
</script>
</body>
</html>The .blur.gray rule exists because a CSS filter declaration replaces rather than combines. Without it, turning on both buttons would apply only the last matching rule. Note also that scaleX(-1) mirrors the text inside the layout. That is expected for this test, since you are judging mass and not legibility.
A numeric check with Python
Your eyes are the final judge, but a number is useful when you need to compare many versions or confirm a hunch. This script treats darker pixels as heavier, finds their center of mass, and reports how far it sits from the center of the image. It also scores left-right symmetry by comparing the image to its mirror.
import sys
import numpy as np
from PIL import Image
def analyze(path, size=200, invert=False):
img = Image.open(path).convert("L").resize((size, size))
values = np.asarray(img, dtype=float)
weight = values if invert else 255.0 - values # dark = heavy by default
total = weight.sum()
if total == 0:
raise ValueError("Image has no weight: it is blank for this setting.")
ys, xs = np.mgrid[0:size, 0:size]
cx = (weight * xs).sum() / total
cy = (weight * ys).sum() / total
middle = (size - 1) / 2
dx = (cx - middle) / size * 100
dy = (cy - middle) / size * 100
mirrored = np.fliplr(values)
diff = np.abs(values - mirrored).mean() / 255 * 100
return dx, dy, diff
if __name__ == "__main__":
path = sys.argv[1]
invert = len(sys.argv) > 2 and sys.argv[2] == "--dark-background"
dx, dy, diff = analyze(path, invert=invert)
print(f"Horizontal offset of weight: {dx:+.1f}% (positive = right)")
print(f"Vertical offset of weight: {dy:+.1f}% (positive = down)")
print(f"Left-right mismatch: {diff:.1f}%")Run it as python balance.py poster.png, or add --dark-background for designs with a dark ground. Interpret the output with these limits in mind:
- Pixel darkness is only a proxy for visual weight. It ignores faces, text hierarchy, saturation and meaning, all of which attract the eye.
- The image is resized to a square, so the percentages are relative to each axis, not to physical distance.
- A perfectly asymmetrical-but-balanced layout will have a large left-right mismatch. A high mismatch is only a problem if you intended symmetry.
- An offset near zero does not guarantee good balance. A centered blob with nothing else can score perfectly and still be dull.
Treat the script as a second opinion that flags candidates for a closer look.
Common errors when testing
- Testing only once. Fix one lean and you may create another. Rerun the tests after each significant change, as the workflow diagram shows.
- Judging at the wrong size. A design for a billboard should be tested from far away, and a mobile screen at actual phone size. Use the thumbnail test for small outputs and a distance test for large ones.
- Trusting the flip when direction is the point. If the layout is meant to lead the eye from left to right, the flipped version will feel worse. The test is revealing a dependency, not necessarily a defect.
- Ignoring content that changes. A layout balanced with placeholder text may lean once real text, longer translations or different photographs go in. Test with realistic content and the longest and shortest cases.
- Forgetting negative space. Blur reveals empty regions, but only you can decide whether they are intentional counterweights or accidental gaps.
- Treating tests as rules. They are probes. When a test and your considered design intent disagree, decide which one is right and be able to say why.
When the tests say "unbalanced" on purpose
Some designs should fail these tests in a specific way. A poster that uses intentional imbalance for tension will show a clear lean under blur and flip. The question to ask is whether the lean is controlled. A deliberate imbalance has a clear cause (one dominant mass, a pointed direction, a deliberate empty space) and a clear effect on the viewer. An accidental one looks arbitrary. Use the tests to confirm that the tension is where you placed it and nowhere else.
Summary of a good review
- Blur and desaturate, then name the main masses and where they sit.
- Shrink to a thumbnail and check that the shape holds.
- Flip horizontally and vertically and note any change in stability.
- Compare halves, physically reflecting one onto the other if needed.
- Optionally measure the centroid to compare versions.
- Fix the largest problem first, using size, contrast, color, position or negative space, and repeat.
Exercise
You blur a landing page and see a large dark hero image on the left, a pale text column on the right, and an empty bottom-right corner. When you flip the page horizontally, it feels more stable. What does this suggest about the original, and what are two ways to correct it?
Show answer
The original leans left. The dark hero image carries most of the weight, and the pale text column and empty corner do not counter it. The flip feels more stable because the heavy mass now sits where the eye starts reading is replaced by a mass on the right, which reveals the imbalance. To correct it, increase the right side's weight, for example by making the text darker or bolder, adding a small high-contrast element such as a button in the bottom-right corner, or enlarging the headline. Alternatively, reduce the left side's weight by lightening or shrinking the image, or move the image closer to the central axis.
Exercise
A script reports a horizontal weight offset of +0.4% and a left-right mismatch of 28% for a poster. Is the poster balanced? What do the two numbers each tell you?
Show answer
It is likely balanced in weight but not symmetrical. The +0.4% offset means the darkness-weighted center of mass is almost exactly at the horizontal center, so the left and right sides carry about equal weight. The 28% mismatch means the left half does not mirror the right half in structure. Together they describe an asymmetrical layout with a good counterbalance. This is only a problem if the design was meant to be symmetrical. You should still confirm with the squint and flip tests, because pixel darkness ignores faces, text hierarchy and color.
Exercise
Why does the CSS example need a separate .layout.blur.gray rule, and what would happen without it?
Show answer
The filter property replaces earlier values instead of adding to them. Without the combined rule, enabling both buttons would leave only one filter active, because the last matching declaration wins. The combined rule sets filter: blur(6px) grayscale(1) so both effects apply together.