Fruits get their unique flavors and colors from genetics, the environment, and ripeness. Genetics determine the variety of the fruit and its genetic makeup. The environment where the fruit is grown, like temperature, sunlight, and soil quality plays a role. Ripeness is another important factor, fully ripe fruits are sweeter and more flavorful than unripe ones. Pigments and compounds in the fruit also contribute to its unique flavor and color.