gradientText

fun gradientText(text: String, startColor: Color4b, endColor: Color4b): MutableComponent

Creates text with a color gradient between two colors.

Return

A MutableText with the gradient applied

Parameters

text

The string to apply the gradient to

startColor

The first color in the gradient

endColor

The second color in the gradient