Examples of Hue


Examples of toxi.color.Hue

        assertTrue(Hue.GREEN.isPrimary());
        assertFalse(Hue.LIME.isPrimary());
        ReadonlyTColor hue = TColor.newHSV(Hue.CYAN, 0.5f, 0.2f);
        assertFalse(hue.isPrimary());
        String hueName = "pink";
        Hue h = Hue.getForName(hueName);
        assertEquals(hueName, h.getName());
        h = Hue.getClosest(100 / 360.0f, false);
        assertEquals("lime", h.getName());
        h = Hue.getClosest(100 / 360.0f, true);
        assertEquals("green", h.getName());
    }
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.