Examples of calcGradient()


Examples of toxi.color.ColorGradient.calcGradient()

        ColorGradient grad = new ColorGradient();
        grad.addColorAt(0, TColor.RED);
        grad.addColorAt(0.5f, TColor.RED);
        grad.addColorAt(2.5f, TColor.YELLOW);
        grad.addColorAt(299f, TColor.BLUE);
        ColorList cols = grad.calcGradient();
        // assertEquals(TColor.BLUE, cols.get(-1));
    }

    public void testHues() {
        assertTrue(Hue.GREEN.isPrimary());
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.