org.cruxframework.crux.widgets.client.util
Class ColorUtils

java.lang.Object
  extended by org.cruxframework.crux.widgets.client.util.ColorUtils

public final class ColorUtils
extends Object


Method Summary
static int[] getRGB(String color)
           
static String hsl2hex(int[] hsl)
           
static String hsl2hex(int h, int s, int l)
           
static int[] hsl2rgb(int[] hsl)
           
static String rgb2hex(int[] rgb)
           
static String rgb2hex(int r, int g, int b)
           
static int[] rgb2hsl(int[] rgb)
           
static String toHex(int v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hsl2rgb

public static int[] hsl2rgb(int[] hsl)

toHex

public static String toHex(int v)

rgb2hex

public static String rgb2hex(int[] rgb)

rgb2hex

public static String rgb2hex(int r,
                             int g,
                             int b)

hsl2hex

public static String hsl2hex(int[] hsl)

hsl2hex

public static String hsl2hex(int h,
                             int s,
                             int l)

rgb2hsl

public static int[] rgb2hsl(int[] rgb)

getRGB

public static int[] getRGB(String color)


Copyright © 2015. All rights reserved.