To expand this a bit more (genetics 101), all organism above bacteria have chromosomes that com in pairs, you get on chromosome form your father and one from your mother.
In the case of a trait like Pastel, that is found in a single strecth of DNA on the same chromosome at the same spot in every snake chromosome. Therefore, when you get a pastel gene from the mother and father, you end up with a super pastel because it has 2 copies of the pastel gene, one on each of its chromosomes.
Now, when the cells go through meiosis to make sperm/eggs, the chromosomes divide so that each sperm/egg gets only a single chromosome so it can carry only a single pastel gene and pass on to a baby a single copy. Barring some cancer type duplication, a sperm/egg can get only a single copy of the pastel gene.
In the case of a double/triple codom, the genes that carry the pastel trait and the spider trait are different genes that are carried at different places on the chromosomes. This means that as the pairs of chromosomes divide, the sperm/egg can get either none of the pastel and spider genes, only the pastel, only the spider, or both the spider and the pastel (bee).
Other things come in to play when you get more complicated like the superstripe.