Image and design guides

Test a Repeating PNG Tile with Shapes and an Image

·

Check a repeating PNG on the background and at the scale it will use. The repeat shows where opposite edges meet, while the single-tile download gives you the file to reuse in CSS or a design editor.

Seamless Pattern Generator

Create and reopen a transparent 100 px tile

Choose Shapes, select Ocean in Color palette and Dot in Quick preset, and set Tile size to 100 px. Enable Transparent background. The 28% circle has a 28 px diameter centered in the tile.

Choose Download tile PNG and reopen pattern-tile-100.png with an alpha-aware viewer. The dimensions are 100 × 100 px. The center is blue #1D4ED8 and the top-left corner is fully transparent. The on-page 3 × 3 preview shows the same dot every 100 pixels on each axis.

Open the Seamless Pattern GeneratorW3C Portable Network Graphics specificationWHATWG Canvas bitmap serialization

Check how an image crosses the tile boundary

Download the four-by-two practice PNG. Choose Image upload, open the PNG and keep the 100 px tile size and transparency. At 100% scale, the artwork is 100 px wide and 50 px high, centered vertically in the square.

Change Horizontal offset to 25%. The bands move 25 pixels right and the white band that crossed the right edge reappears at the left. Check the repeated view, including the pixel row around y = 30, before downloading the shifted tile.

Check how an image crosses the tile boundary
Pixel at y = 30Before offsetAfter 25% horizontal offset
x = 10RedWhite
x = 35GreenRed
x = 60BlueGreen
x = 85WhiteBlue

Download the four-by-two color and alpha practice imageWHATWG Canvas bitmap serialization

Repeat the saved PNG at its native dimensions

Copy the PNG next to your stylesheet, apply it to a box at least three tiles wide and choose a background color that makes transparency easy to see. Confirm the repeats meet at 100 px intervals.

If an imported photo shows a border where rewound edges meet, try a source texture with matched opposite edges. Pick a texture that still reads well when the repeated field is viewed at the intended scale.

Repeat the 100 × 100 px PNG
.pattern-panel {
  background-color: #e8f0f8;
  background-image: url('./pattern-tile-100.png');
  background-size: 100px 100px;
  background-repeat: repeat;
}

W3C CSS Backgrounds background-repeatW3C Portable Network Graphics specification

Common questions

Does changing a background color change the repeat pitch?

No. Tile size controls the repeat pitch. Changing the background alters the color of uncovered pixels.

Why is the image only 50 px high in the 100 px example?

The 4 × 2 image is twice as wide as it is tall. At 100% scale it fits to the 100 px tile width and keeps that ratio.

Sources

Put it into practice.

Related guides