During the early stages of development, when the cat is still an embryo, in each cell one of the X chromosomes (either the black one or the orange one) deactivates. It is called X-inactivation. All cells that were copied from a cell with a deactivated X chromosome will also have the same X chromosome deactivated. This is what leads to formation of the spots. The earlier in development the X chromosomes deactivate, the larger the spots will be. Deactivation of one of the X chromosomes happens in all female mammals. The white coloring on a calico is from a separate gene unrelated to the orange or black genes. Whether or not a cat is a calico is determined by genetics, but the actual layout of the spots is not. The layout of the spots is almost random. It is not possible to selectively breed or clone calico cats: an attempt to clone a calico cat will produce a black and white cat or orange and white tabby cat. The tortoiseshell cat is similar, although on a tortoiseshell cat the spots are usually smaller and closer together and there is less or no white.