If you are not interested, skip to the next subsection. Color is best represented by a three-dimensional model, because we can determine a color in three executive email list dimensions : hue (underside), saturation (right), and lightness or lightness (left) . The executive email list 3D model shown in the figure contains all possible colors, and each point in the "box" represents a color. As with any algorithm, first, we need to determine what the inputs and outputs of the algorithm are.
For the output, we want to get a set of colors with the same hue and different brightness. If we want to build a complete color system, we need to repeat the algorithm executive email list to get the corresponding color for each color pair. So, how many colors should the algorithm output? At Lyft, our answer is 11. That is, the algorithm outputs 11 colors numbered executive email list 0, 10, 20, up to 100. Having solved the problem of the number of outputs, we have to solve the problem of the input.
First, we will choose an integer interval between 0-359, which represents the range of hues. The size of the interval depends on the type of hue. If the hue is red executive email list, the interval is generally smaller; if the hue is yellow, the interval is generally larger executive email list, and we will also expand or narrow the interval according to actual needs. Second, we need to enter the range of saturation. Saturation can take a value from 0 to 1. In the algorithm, we added the ability to adjust the saturation, which can quickly optimize the output result.