public static CssValue Mix(CssValue[] args) { Rgba32 color1 = GetColor(args[0]); Rgba32 color2 = GetColor(args[1]); double amount = args.Length == 3 ? GetAmount(args[2]) : 0.5; return(new CssColor(color1.BlendWith(color2, (float)amount))); }