colorToRgbaArray

open fun colorToRgbaArray(@ColorInt color: Int): Array<Float>

Converts Android color int to rgba float array.

Returned RGB values range from 0 to 255. Alpha value ranges from 0-1.

Return

float rgba array, rgb values range from 0-255, alpha from 0-1

Parameters

color

Android color int