The CSS Podcast cover image

62: Color functions: An update

The CSS Podcast

00:00

The Color Mix Function Is a Function to Create a Color in the LCH Space

Color mix can scale up to complex cases like mixing colors with alpha, mixing colors in custom color spaces and much more. Percentage says how dominant that color should be while mixing or rather how much of this color should make its way into the final result. And you don't have to specify the percentage for both colors. If you admit the percentage for one of the colors, it'll automatically be assigned to the remainder of the weight. There's also a function called color adjust which is pretty similar to adjusting colors.

Play episode from 03:42
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app