ColorUtil

object ColorUtil

Simple utility class for manipulating colors, based on Fresco's DrawableUtils (https://github.com/facebook/fresco). For a small helper like this, copying is simpler than adding a dependency on com.facebook.fresco.drawee.

Functions

Link copied to clipboard

Converts individual {r, g, b, a} channel values to a single integer representation of the color as 0xAARRGGBB.