BackgroundFill

@Serializable
sealed class BackgroundFill

This object describes the way a background is filled based on the selected colors. Currently, it can be one of

  • BackgroundFillSolid

  • BackgroundFillGradient

  • BackgroundFillFreeformGradient

Api reference

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "freeform_gradient")
data class FreeformGradient(val colors: List<Int>) : BackgroundFill
Link copied to clipboard
@Serializable
@SerialName(value = "gradient")
data class Gradient(val topColor: Int, val bottomColor: Int, val rotationAngle: Int) : BackgroundFill
Link copied to clipboard
@Serializable
@SerialName(value = "solid")
data class Solid(val color: Int) : BackgroundFill

Properties

Link copied to clipboard