Examples of brightness()


Examples of toxi.color.TColor.brightness()

                c.brightness() + (1 - c.brightness()) * 0.2f));
        c.setSaturation(wrap(c.saturation(), 0.3f, 0.1f, 0.3f));
        colors.add(c);

        c = src.copy();
        c.setBrightness(wrap(c.brightness(), 0.5f, 0.2f, 0.3f));
        colors.add(c);

        return colors;
    }

View Full Code Here

Examples of toxi.color.TColor.brightness()

        assertEquals(c.red(), d.red());
        assertEquals(c.green(), d.green());
        assertEquals(c.blue(), d.blue());
        assertEquals(c.hue(), d.hue());
        assertEquals(c.saturation(), d.saturation());
        assertEquals(c.brightness(), d.brightness());
        assertEquals(c.cyan(), d.cyan());
        assertEquals(c.magenta(), d.magenta());
        assertEquals(c.yellow(), d.yellow());
        assertEquals(c.black(), d.black());
        assertEquals(c.alpha(), d.alpha());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.