Complete the code to increase the saturation of the color by 20%.
$color: #6699cc; $new-color: saturate($color, [1]);
The saturate function increases the saturation of a color by the given percentage. Here, 20% increases the color's saturation moderately.
Complete the code to decrease the saturation of the color by 30%.
$color: #ff6600; $new-color: desaturate($color, [1]);
The desaturate function reduces the saturation of a color by the specified percentage. Here, 30% reduces the saturation noticeably.
Fix the error in the code to correctly saturate the color by 40%.
$color: #00cc99; $new-color: saturate($color[1]40%);
The saturate function requires a comma between the color and the percentage value.
Fill both blanks to create a color that is first saturated by 25% and then desaturated by 10%.
$color: #336699; $step1: saturate($color, [1]); $final-color: desaturate($step1, [2]);
First, the color is saturated by 25%, then the result is desaturated by 10% to adjust the saturation stepwise.
Fill all three blanks to create a map of colors with keys as uppercase color names and values as colors desaturated by 20%.
$colors: ([1]: desaturate(red, [2]), [3]: desaturate(blue, 20%));
The keys are uppercase color names RED and BLUE. The values are the colors desaturated by 20%. The second blank is the desaturation percentage for red.