Gradient

interface Gradient

Functions

Link copied to clipboard
abstract fun colors(vararg colors: TextColor): Gradient

グラデーションに使用する色を設定します。

Link copied to clipboard
abstract fun phase(phase: Float): Gradient

グラデーションのフェーズ(開始位置のオフセット)を設定します。

Link copied to clipboard
abstract fun weights(vararg weights: Double): Gradient

各色の重み(その色がつく長さの比率)を設定します。 指定しない場合は均等になります。