org.riotfamily.website.css
Class ColorTool
java.lang.Object
org.riotfamily.website.css.ColorTool
public class ColorTool
- extends Object
- Since:
- 6.5
- Author:
- Felix Gnass [fgnass at neteye dot de]
Method Summary |
String |
brightness(String color,
int percentage)
Returns a shade of the given color with a brightness adjusted by the
specified percentage. |
String |
saturation(String color,
int percentage)
Returns a shade of the given color with a saturation adjusted by the
specified percentage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorTool
public ColorTool()
brightness
public String brightness(String color,
int percentage)
- Returns a shade of the given color with a brightness adjusted by the
specified percentage. The color may specified in any format supported
by
ColorUtils.parseColor(String)
, including named colors.
saturation
public String saturation(String color,
int percentage)
- Returns a shade of the given color with a saturation adjusted by the
specified percentage. The color may specified in any format supported
by
ColorUtils.parseColor(String)
, including named colors.