OmhStyleSpanGradient

class OmhStyleSpanGradient(val fromColor: Int, val toColor: Int, val segments: Double? = null, val stamp: Bitmap? = null) : OmhStyleSpan, Parcelable

OmhStyleSpanGradient is a class that represents a gradient style span on a map. A style span can be used to customize the appearance of polylines. This class implements the OmhStyleSpan interface.

Constructors

Link copied to clipboard
constructor(fromColor: Int, toColor: Int, segments: Double? = null, stamp: Bitmap? = null)

Properties

Link copied to clipboard

The starting color of the gradient.

Link copied to clipboard
open override val segments: Double? = null

The number of segments in the gradient.

Link copied to clipboard
open override val stamp: Bitmap? = null

The bitmap used for the gradient.

Link copied to clipboard

The ending color of the gradient.