Package toxi.color

Examples of toxi.color.TColor.lighten()


     */
    public ColorList createListFromColor(ReadonlyTColor src) {
        ColorList colors = new ColorList(src);
        TColor c = src.getRotatedRYB(theta);
        if (c.brightness() < 0.5) {
            c.lighten(0.2f);
        } else {
            c.darken(0.2f);
        }
        colors.add(c);

View Full Code Here


        }
        colors.add(c);

        c = src.getRotatedRYB(theta * 2);
        if (c.brightness() < 0.5) {
            c.lighten(0.1f);
        } else {
            c.darken(0.1f);
        }
        colors.add(c);

View Full Code Here

        }
        colors.add(c);

        // A soft supporting color: lighter and less saturated.
        c = src.copy();
        c.lighten(0.3f);
        c.setSaturation(0.1f + c.saturation() * 0.3f);
        colors.add(c);

        // A contrasting complement: very dark or very light.
        c = src.getComplement();
View Full Code Here

        // The complement and a light supporting variant.
        colors.add(src.getComplement());

        c = src.getComplement();
        c.lighten(0.3f);
        c.setSaturation(0.1f + c.saturation() * 0.25f);
        colors.add(c);
        return colors;
    }

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.