Here you can find the source of HTMLtoRGB(String htmlColor)
Parameter | Description |
---|---|
htmlColor | HTML representation of the color #RRGGBB |
public static int HTMLtoRGB(String htmlColor)
//package com.java2s; public class Main { /**//w w w . j a va2 s . com * Parses HTML color representation * * @param htmlColor HTML representation of the color #RRGGBB * @return Integer color value */ public static int HTMLtoRGB(String htmlColor) { return Integer.parseInt(htmlColor.replace("#", ""), 16); } }