Examples of RGB01Color


Examples of org.jrebirth.af.core.resource.color.RGB01Color

        checkRgb01Color(TestColors.TEST_COLOR_RGB01_3);
    }

    private void checkRgb01Color(final ColorItem colorItem) {
        final Color color = colorItem.get();
        final RGB01Color wc = (RGB01Color) ResourceBuilders.COLOR_BUILDER.getParam(colorItem);

        assertEquals(color.getRed(), wc.red(), 0.000001);
        assertEquals(color.getGreen(), wc.green(), 0.000001);
        assertEquals(color.getBlue(), wc.blue(), 0.000001);

        assertEquals(color.getOpacity(), wc.opacity(), 0.1);
    }
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.