Color

Page 1 2

public float red() source
public float green() source
public float blue() source
public float alpha() source
public ColorSpace getColorSpace() source
public ColorSpace.Model getModel() source
public int getComponentCount() source
public float getComponent(int component) source
public float[] getComponents() source
public Color convert(ColorSpace colorSpace) source

The color in another color space, through XYZ (the color spaces here keep sRGB's values).

public static void RGBToHSV(int red, int green, int blue, float[] hsv) source
public static void colorToHSV(int color, float[] hsv) source
public static int HSVToColor(float[] hsv) source
public static int HSVToColor(int alpha, float[] hsv) source
public static int parseColor(String s) source

Page 1 2


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.