rainbow / com.skydoves.rainbow / Rainbow / background

background

fun background(): Unit

applies gradation effect composed with palette colors to the background. For Java.

fun background(orientation: RainbowOrientation = RainbowOrientation.LEFT_RIGHT, @Dp radius: Int = 0): Unit

applies gradation effect composed with palette colors to the background.