Procedural scales · pattern, relief, sheen

Snake skin generator

A snake's skin is two things laid over each other: a lattice of overlapping scales, and a colour pattern that belongs to the skin underneath. This page builds them separately. The scales come from a staggered grid in which each row lies over the one behind it; the pattern is a field of blotches, bands or marbling that each scale samples at its own centre.

–scales
–pattern
–parameters
–preview px

Scales are folds

A snake's scales are not separate plates. They are folds of one continuous skin, each with a free edge pointing towards the tail that lies over the base of the scale behind. Between them is thin, stretchy skin that only shows when the body is stretched, as when the snake swallows. Scales on the back and sides sit in diagonal rows; the belly has a single column of wide scales.

Pattern in steps

The colour comes from pigment cells in the skin, and the pattern is laid down in the embryo independently of any one scale. Yet on many snakes each scale ends up mostly one colour, so that diamonds and bands have stepped, pixel-like edges. The “One colour per scale” slider moves between a pattern that ignores the scales and one drawn a scale at a time.

Keels and sheen

Pythons and boas have smooth scales. Vipers, garter snakes and many others have a ridge, the keel, down the middle of each, which makes the skin look matte and rough. The rainbow sheen on some dark snakes is not pigment: it comes from very fine regular structure on the scale surface that splits light by angle.

What comes from the real thing, and what this page chose

From the real thing

  • Scales overlap towards the tail, in staggered rows, with skin between them.
  • Belly scales are wide and run in one column.
  • Patterns are built from a few repeating elements: blotches or diamonds with dark outlines and pale edges, rings, lengthwise stripes, zigzags, and flecks of single scales.
  • Keeled against smooth scales, and iridescence that depends on angle.

Chosen by this page

  • Every scale has the same basic outline, a superellipse with a taper. Real scales change in size and shape from the spine to the belly and from neck to tail; here they only differ by random amounts.
  • The pattern is geometry (a lattice of shapes, a wave, a noise), not a model of how pigment cells arrange themselves. Real patterns are thought to form by reaction and diffusion or cell movement in the embryo.
  • The tile is a flat patch. It does not know where the spine or the head is, so patterns that depend on position along the body are not reproduced.
  • Iridescence is a colour that cycles with the tilt of the surface, not a calculation of diffraction.
  • The light is a single direction with a simple highlight. It is a texture preview, not a physically based render.
  • Presets are named after looks. They are not accurate portraits of species.