def g01_quantize(rng):
"""Mesh gradient sampled once per cell and snapped to the ramp."""
steps = rng.randint(6, 9)
c = Canvas(rng.choice([30, 40, 50]), _pal(rng), steps, "quantize", "mosaic")
c.ground_from(Field(rng, "mesh", warp=rng.uniform(0.15, 0.45), steps=steps))
return c