 Ever had a hex color and wanted a half opacity version of it? Well, I've got you covered in today's GUI snippet. Altering a color's opacity is now very easy. Thank you to relative color syntax that's coming out in Chrome 118. So we see up here, we have a source color, a nice magenta, and I want to make a half opacity version of that. So I'm going to say RGB from then I pass the color. I'm returning RGB unaltered, but I am going to pass a slash, which means I'm going to be specifying alpha next, and I'm going to do calc on the alpha channel that it gives me from this function and divide it by two. So I'm cutting the opacity in half from whatever it is. That means that the source color has some opacity. I'm dividing it by two. And this is neat because I can dynamically do these calculations for any color, any source color. I can cut the opacity in half with just a nice little calc on an alpha channel. Gotta love that, right?