Package toxi.color

Examples of toxi.color.ColorGradient$GradPoint


        assertEquals(c.black(), d.black());
        assertEquals(c.alpha(), d.alpha());
    }

    public void testGradient() {
        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));
    }
View Full Code Here

TOP

Related Classes of toxi.color.ColorGradient$GradPoint

Copyright © 2018 www.massapicom. 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.