Examples of HSLColor


Examples of org.gudy.azureus2.ui.swt.mainwindow.HSLColor

          }
        });

    if (colorLine == null) {
      colorLine = tv.getComposite().getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND);
      HSLColor hslColor = new HSLColor();
      hslColor.initHSLbyRGB(colorLine.getRed(), colorLine.getGreen(),
          colorLine.getBlue());
 
      int lum = hslColor.getLuminence();
      if (lum > 127)
        lum -= 25;
      else
        lum += 40;
      hslColor.setLuminence(lum);
     
      colorLine = new Color(tv.getComposite().getDisplay(), hslColor.getRed(), hslColor.getGreen(), hslColor.getBlue());
    }

    /* Background image badly slows down tree drawing
    int itemHeight = table.getItemHeight() + 1;
    int height = 1920;
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.mainwindow.HSLColor

   
    Device device = canvas.getDisplay();
   
    colours = new Color[16];
   
    HSLColor hsl = new HSLColor();
   
    hsl.initHSLbyRGB( 130,240,240 );
   
    int  step = 128 / colours.length;
   
    int  hue = colours.length * step;
   
    for (int i=0;i<colours.length;i++){
     
      hsl.setHue( hue );
     
      hue -= step;
     
      colours[i] = new Color( device, hsl.getRed(), hsl.getGreen(), hsl.getBlue());
    }
  }
View Full Code Here

Examples of org.openpnp.util.HslColor

        return color;
    }

    public void setColor(Color color) {
        this.color = color;
        complimentaryColor = new HslColor(color).getComplementary();
    }
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.