Package icyllis.arc3d.core
Annotation Interface ColorInt
@Documented
@Retention(CLASS)
@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE})
public @interface ColorInt
Denotes that the annotated element represents a packed 32-bit ARGB color value,
un-premultiplied,
AARRGGBB
. If applied to an int array, every element
in the array represents a color integer. This matches the format of
ColorInfo.CT_BGRA_8888_NATIVE
. Color ints are used to specify colors
in paint and in gradients.
Color that is premultiplied has the same component values as color that is un-premultiplied if alpha is 255, fully opaque, although it may have the component values in a different order.
Example:
public abstract void setColor(@ColorInt int color);