This rules out darker colors whose components can be closer to 0.
#COLOR PASTEL CODE#
This code generates a random color whose red, green, and blue components are all between 128 and 256. /rebates/&.com252frembrandt-5-color-light-grays-half-stick-soft-pastel-set252fD368489S. The more white you add, the paler and softer it gets. For example, pale pink is red with a certain amount of white in it. For example instead of creating a completely random color, you could create a random color whose components are on the lighter side. Pastel colors, also known as tints, are the softer versions of primary and secondary colors obtained by adding white to the original color. Is it just a lighter color? If so there are easier ways to generate that. Pastel Red PMS: 2345 C Hex Color: FF6D6A RGB: (255,109,106) CMYK: (0,67,52,0) Pastel Orange PMS: 156 C Hex Color: EFBE7D RGB: (239,190,125) CMYK: (0,23,51,0. 1 Count (Pack of 1) 4.7 out of 5 stars 13.
![color pastel color pastel](https://image.shutterstock.com/image-vector/pastel-colorful-geometric-elements-abstract-260nw-1484305361.jpg)
Whether that produces a pastel color depends on the parameter color, but I suppose if you passed in pure white then it would be like mixing a random color with white?Īnyway, I recommend you take a step back and think about exactly what you mean by pastel color. Beauty Glazed 105 Colors Pastel Paradise Eyeshadow Palette, Highly Pigmented Neon Shimmer Matte Glitter Rainbow Make Up Eye Shadow Powder with Matte Blush Powder All In One Makeup Gift Set. It looks to me like the function in your first code snippet is averaging a random color with the parameter color. If you're going to use code you find on the internet, it's really important that you understand what it's doing.