Examples of hue()


Examples of org.jrebirth.af.core.resource.color.HSBColor.hue()

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

        assertEquals(color.getHue(), wc.hue(), 1.0);
        assertEquals(color.getSaturation(), wc.saturation(), 0.000001);
        assertEquals(color.getBrightness(), wc.brightness(), 0.000001);

        assertEquals(color.getOpacity(), wc.opacity(), 0.1);
    }
View Full Code Here

Examples of toxi.color.ReadonlyTColor.hue()

        ReadonlyTColor left = src.getComplement().rotateRYB(-30).lighten(0.1f);
        ColorList colors = ColorTheoryRegistry.COMPLEMENTARY
                .createListFromColor(src);
        for (int i = 3; i < 6; i++) {
            TColor c = colors.get(i);
            c.setHue(left.hue());
        }
        return colors;
    }

    /*
 
View Full Code Here

Examples of toxi.color.ReadonlyTColor.hue()

        ReadonlyTColor left = src.getComplement().rotateRYB(30).lighten(0.1f);
        ColorList colors = ColorTheoryRegistry.COMPLEMENTARY
                .createListFromColor(src);
        for (int i = 3; i < 6; i++) {
            TColor c = colors.get(i);
            c.setHue(left.hue());
        }
        return colors;
    }

    /*
 
View Full Code Here

Examples of toxi.color.ReadonlyTColor.hue()

        assertEquals(0.25f, c.black());
    }

    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

Examples of toxi.color.TColor.hue()

        TColor c = TColor.newRandom();
        TColor d = c.copy();
        assertEquals(c.red(), d.red());
        assertEquals(c.green(), d.green());
        assertEquals(c.blue(), d.blue());
        assertEquals(c.hue(), d.hue());
        assertEquals(c.saturation(), d.saturation());
        assertEquals(c.brightness(), d.brightness());
        assertEquals(c.cyan(), d.cyan());
        assertEquals(c.magenta(), d.magenta());
        assertEquals(c.yellow(), d.yellow());
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.