Package jsx.style.value

Examples of jsx.style.value.Color


     *
     * @param transparency A transparency of shadow.
     * @return
     */
    public Text shadow(Color color, double transparency) {
        color = new Color(0, 0, color.lightness < 50 ? 100 : 0, transparency);
        Shadow shadow1 = new Shadow().offset(1, 0, px).color(color);
        Shadow shadow2 = new Shadow().offset(0, 1, px).color(color);

        return shadow(shadow1, shadow2);
    }
View Full Code Here


     *
     * @param transparency A transparency of shadow.
     * @return
     */
    public Text outline(Color color, double transparency) {
        color = new Color(0, 0, color.lightness < 50 ? 100 : 0, transparency);
        Shadow shadow1 = new Shadow().offset(1, 0, px).color(color);
        Shadow shadow2 = new Shadow().offset(0, 1, px).color(color);
        Shadow shadow3 = new Shadow().offset(-1, 0, px).color(color);
        Shadow shadow4 = new Shadow().offset(0, -1, px).color(color);

View Full Code Here

     * @param lightness The brightness relative to the brightness of a similarly illuminated white.
     * @param alpha The transparency.
     * @return A new color.
     */
    protected static final Color hsla(int hue, int saturation, int lightness, double alpha) {
        return new Color(hue, saturation, lightness, alpha);
    }
View Full Code Here

TOP

Related Classes of jsx.style.value.Color

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.