Transform a ring.