Rain

The experimental Rain API to render rain effect on the map.

Constructors

Link copied to clipboard
fun Rain()

Functions

Link copied to clipboard
open override fun bindTo(delegate: MapboxStyleManager)

Bind rain to the map controller.

Link copied to clipboard
open override fun centerThinning(centerThinning: Expression): Rain
open override fun centerThinning(centerThinning: Double): Rain

Thinning factor of rain particles from center. 0 - no thinning. 1 - maximal central area thinning. Default value: 0.57. Value range: 0, 1

Link copied to clipboard

Set the CenterThinning property transition options.

Link copied to clipboard
open override fun color(color: Expression): Rain
open override fun color(@ColorInt color: Int): Rain
open override fun color(color: String): Rain

Individual rain particle dorplets color. Default value: "["interpolate","linear","measure-light","brightness",0,"#03113d",0.3,"#a8adbc"]".

Link copied to clipboard

Set the Color property transition options.

Link copied to clipboard
open override fun density(density: Expression): Rain
open override fun density(density: Double): Rain

Rain particles density. Controls the overall screen density of the rain. Default value: "["interpolate","linear","zoom",11,0,13,0.5]". Value range: 0, 1

Link copied to clipboard

Set the Density property transition options.

Link copied to clipboard
open override fun direction(direction: Expression): Rain
open override fun direction(direction: List<Double>): Rain

Main rain particles direction. Azimuth and polar angles. Default value: 0,80. Value range: 0, 360

Link copied to clipboard

Set the Direction property transition options.

Link copied to clipboard
open override fun distortionStrength(distortionStrength: Expression): Rain
open override fun distortionStrength(distortionStrength: Double): Rain

Rain particles screen-space distortion strength. Default value: 0.7. Value range: 0, 1

Link copied to clipboard

Set the DistortionStrength property transition options.

Link copied to clipboard
open override fun dropletSize(dropletSize: Expression): Rain
open override fun dropletSize(dropletSize: List<Double>): Rain

Rain droplet size. x - normal to direction, y - along direction Default value: 2.6,18.2. Value range: 0, 50

Link copied to clipboard

Set the DropletSize property transition options.

Link copied to clipboard
open override fun intensity(intensity: Expression): Rain
open override fun intensity(intensity: Double): Rain

Rain particles movement factor. Controls the overall rain particles speed Default value: 1. Value range: 0, 1

Link copied to clipboard

Set the Intensity property transition options.

Link copied to clipboard
open override fun opacity(opacity: Expression): Rain
open override fun opacity(opacity: Double): Rain

Rain particles opacity. Default value: "["interpolate","linear","measure-light","brightness",0,0.88,1,0.7]". Value range: 0, 1

Link copied to clipboard

Set the Opacity property transition options.

Link copied to clipboard
open override fun vignette(vignette: Expression): Rain
open override fun vignette(vignette: Double): Rain

Screen-space vignette rain tinting effect intensity. Default value: "["interpolate","linear","zoom",11,0,13,1]". Value range: 0, 1

Link copied to clipboard
open override fun vignetteColor(vignetteColor: Expression): Rain
open override fun vignetteColor(@ColorInt vignetteColor: Int): Rain
open override fun vignetteColor(vignetteColor: String): Rain

Rain vignette screen-space corners tint color. Default value: "["interpolate","linear","measure-light","brightness",0,"#001736",0.3,"#464646"]".

Link copied to clipboard

Set the VignetteColor property transition options.

Link copied to clipboard

Set the Vignette property transition options.

Properties

Link copied to clipboard

Thinning factor of rain particles from center. 0 - no thinning. 1 - maximal central area thinning. Default value: 0.57. Value range: 0, 1

Link copied to clipboard

Thinning factor of rain particles from center. 0 - no thinning. 1 - maximal central area thinning. Default value: 0.57. Value range: 0, 1

Link copied to clipboard

CenterThinning property transition options.

Link copied to clipboard

Individual rain particle dorplets color. Default value: "["interpolate","linear","measure-light","brightness",0,"#03113d",0.3,"#a8adbc"]".

Link copied to clipboard

Individual rain particle dorplets color. Default value: "["interpolate","linear","measure-light","brightness",0,"#03113d",0.3,"#a8adbc"]".

Link copied to clipboard

Individual rain particle dorplets color. Default value: "["interpolate","linear","measure-light","brightness",0,"#03113d",0.3,"#a8adbc"]".

Link copied to clipboard

Color property transition options.

Link copied to clipboard

Rain particles density. Controls the overall screen density of the rain. Default value: "["interpolate","linear","zoom",11,0,13,0.5]". Value range: 0, 1

Link copied to clipboard

Rain particles density. Controls the overall screen density of the rain. Default value: "["interpolate","linear","zoom",11,0,13,0.5]". Value range: 0, 1

Link copied to clipboard

Density property transition options.

Link copied to clipboard

Main rain particles direction. Azimuth and polar angles. Default value: 0,80. Value range: 0, 360

Link copied to clipboard

Main rain particles direction. Azimuth and polar angles. Default value: 0,80. Value range: 0, 360

Link copied to clipboard

Direction property transition options.

Link copied to clipboard

Rain particles screen-space distortion strength. Default value: 0.7. Value range: 0, 1

Link copied to clipboard

Rain particles screen-space distortion strength. Default value: 0.7. Value range: 0, 1

Link copied to clipboard

DistortionStrength property transition options.

Link copied to clipboard

Rain droplet size. x - normal to direction, y - along direction Default value: 2.6,18.2. Value range: 0, 50

Link copied to clipboard

Rain droplet size. x - normal to direction, y - along direction Default value: 2.6,18.2. Value range: 0, 50

Link copied to clipboard

DropletSize property transition options.

Link copied to clipboard

Rain particles movement factor. Controls the overall rain particles speed Default value: 1. Value range: 0, 1

Link copied to clipboard

Rain particles movement factor. Controls the overall rain particles speed Default value: 1. Value range: 0, 1

Link copied to clipboard

Intensity property transition options.

Link copied to clipboard

Rain particles opacity. Default value: "["interpolate","linear","measure-light","brightness",0,0.88,1,0.7]". Value range: 0, 1

Link copied to clipboard

Rain particles opacity. Default value: "["interpolate","linear","measure-light","brightness",0,0.88,1,0.7]". Value range: 0, 1

Link copied to clipboard

Opacity property transition options.

Link copied to clipboard

Screen-space vignette rain tinting effect intensity. Default value: "["interpolate","linear","zoom",11,0,13,1]". Value range: 0, 1

Link copied to clipboard

Screen-space vignette rain tinting effect intensity. Default value: "["interpolate","linear","zoom",11,0,13,1]". Value range: 0, 1

Link copied to clipboard

Rain vignette screen-space corners tint color. Default value: "["interpolate","linear","measure-light","brightness",0,"#001736",0.3,"#464646"]".

Link copied to clipboard

Rain vignette screen-space corners tint color. Default value: "["interpolate","linear","measure-light","brightness",0,"#001736",0.3,"#464646"]".

Link copied to clipboard

Rain vignette screen-space corners tint color. Default value: "["interpolate","linear","measure-light","brightness",0,"#001736",0.3,"#464646"]".

Link copied to clipboard

VignetteColor property transition options.

Link copied to clipboard

Vignette property transition options.