adjustColorBrightness

fun adjustColorBrightness(color: Int, factor: Float): Int

Used for gradient color adjustment when the user doesn't have an image.

Return

Int ARGB value of the color after adjustment.

Parameters

color

The color to adjust.

factor

The factor by which we adjust the color.