rainbow / com.skydoves.rainbow / RainbowView

RainbowView

open class RainbowView : View

RainbowView represents gradation effect using colors.

Constructors

<init>

RainbowView(context: Context)
RainbowView(context: Context, attributeSet: AttributeSet)
RainbowView(context: Context, attributeSet: AttributeSet, defStyle: Int)

Properties

orientation

var orientation: RainbowOrientation

radius

var radius: Int

Functions

addColor

adds color to the gradation color set.

fun addColor(color: Int): Unit

onFinishInflate

open fun onFinishInflate(): Unit

removeColor

removes color from the gradation color set.

fun removeColor(index: Int): Unit

shuffleColors

shuffles gradation colors in the color set.

fun shuffleColors(): Unit