ColorBuilders.ColorStop
@RequiresSchemaVersion(major = 1, minor = 300)
class ColorBuilders.ColorStop
A color and an offset, determining a color position in a gradient.
Summary
Nested types |
|---|
|
Builder for |
Public functions |
|
|---|---|
ColorBuilders.ColorProp |
getColor()Gets the color for this stop. |
TypeBuilders.FloatProp? |
Gets the relative offset for this color, between 0 and 1. |
String |
toString() |
Public functions
getColor
Added in 1.1.0
fun getColor(): ColorBuilders.ColorProp
Gets the color for this stop. Only opaque colors are supported. Any transparent colors will have their alpha component set to 0xFF (opaque).
getOffset
Added in 1.1.0
fun getOffset(): TypeBuilders.FloatProp?
Gets the relative offset for this color, between 0 and 1. This determines where the color is positioned relative to a gradient space.