Beispiel #1
0
        public static CssValue Lighten(CssValue[] args)
        {
            Rgba32 color  = GetColor(args[0]);
            var    amount = GetAmount(args[1]);

            return(new CssColor(color.Lighten((float)amount)));
        }
        public void Lighten()
        {
            Rgba32 lighten = Rgba32.Lighten(Backdrop, Source);

            Assert.True(lighten == new Rgba32(204, 102, 153));
        }