Package toxi.color

Examples of toxi.color.ReadonlyTColor.brightness()


    }

    public void testColor() {
        ReadonlyTColor c = TColor.newHex("00ffff");
        assertEquals(0.5, c.hue(), 0.001);
        assertEquals(1.0, c.brightness(), 0.001);
        TColor d = TColor.newCMYK(1.0f, 0, 0, 0);
        float delta = c.distanceToHSV(d);
        assertEquals(0.0f, delta);
    }
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.