public static CssValue Darken(CssValue[] args) { Rgba32 color = GetColor(args[0]); var amount = GetAmount(args[1]); return(new CssColor(color.Darken((float)amount))); }
public void Darken() { Rgba32 darken = Rgba32.Darken(Backdrop, Source); Assert.True(darken == new Rgba32(0, 102, 0)); }