linearGradient

fun linearGradient(from: CSSColorValue, to: CSSColorValue, dir: LinearGradient.Direction, interpolation: ColorInterpolationMethod? = null): LinearGradient(source)
fun linearGradient(from: CSSColorValue, to: CSSColorValue, angle: CSSAngleNumericValue, interpolation: ColorInterpolationMethod? = null): LinearGradient(source)
fun linearGradient(from: CSSColorValue, to: CSSColorValue, interpolation: ColorInterpolationMethod? = null): LinearGradient(source)


fun linearGradient(dir: LinearGradient.Direction, from: CSSColorValue, to: CSSColorValue): LinearGradient(source)

Deprecated

The arguments have been reordered to accept the colors first, as this order is more suited to adding additional optional arguments across the different method variants in a consistent way.

Replace with

linearGradient(from, to, dir)

fun linearGradient(angle: CSSAngleNumericValue, from: CSSColorValue, to: CSSColorValue): LinearGradient(source)

Deprecated

The arguments have been reordered to accept the colors first, as this order is more suited to adding additional optional arguments across the different method variants in a consistent way.

Replace with

linearGradient(from, to, angle)