Fundamentals
Components
Code Utilities
Demo
BcStylesColorMixer
Description
BcCssColorMixer is a utility class for working with CSS colors. It allows color blending, transparency adjustments, and supports multiple color formats, including HEX, RGB, and HSL.
Methods
MixColors ( string cssColor1, string cssColor2, int percentageColor1 )
Mixes two CSS colors based on a given percentage. Returns the resulting blended color in HEX format.
string
TransparentColor ( string cssColor, int percentage )
Adjusts the transparency of a given CSS color by modifying its alpha value.
string