I have a gwt log which is
GWT.log("color ="+colorWidget.getSelectionStyle().getBackgroundColor());
what i have is
String format with [INFO] color = rgba(102, 0, 255, 0.506)
Does anybody can help me to convert this to Hex format?
I have a gwt log which is
GWT.log("color ="+colorWidget.getSelectionStyle().getBackgroundColor());
what i have is
String format with [INFO] color = rgba(102, 0, 255, 0.506)
Does anybody can help me to convert this to Hex format?
You can use any JS solution or simply write your own method based on one the solutions you can find online. For example:
The correct answer is to use a Java function to convert the RBG value to HEX. Unfortunately there is not GWT method that does this. A Helper method can be found here.