Snow

The experimental Snow API to render snow effect on the map.

Constructors

Link copied to clipboard
fun Snow()

Functions

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

Bind snow to the map controller.

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

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

Link copied to clipboard

Set the CenterThinning property transition options.

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

Snow particles color. Default value: "#ffffff".

Link copied to clipboard

Set the Color property transition options.

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

Snow particles density. Controls the overall particles number. Default value: "["interpolate","linear","zoom",11,0,13,0.85]". Value range: 0, 1

Link copied to clipboard

Set the Density property transition options.

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

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

Link copied to clipboard

Set the Direction property transition options.

Link copied to clipboard
open override fun flakeSize(flakeSize: Expression): Snow
open override fun flakeSize(flakeSize: Double): Snow

Snow flake particle size. Correlates with individual particle screen size Default value: 0.71. Value range: 0, 5

Link copied to clipboard

Set the FlakeSize property transition options.

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

Snow particles movement factor. Controls the overall particles movement 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): Snow
open override fun opacity(opacity: Double): Snow

Snow particles opacity. Default value: 1. Value range: 0, 1

Link copied to clipboard

Set the Opacity property transition options.

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

Snow vignette screen-space effect. Adds snow tint to screen corners Default value: "["interpolate","linear","zoom",11,0,13,0.3]". Value range: 0, 1

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

Snow vignette screen-space corners tint color. Default value: "#ffffff".

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 snow particles from center. 0 - no thinning. 1 - maximal central area thinning. Default value: 0.4. Value range: 0, 1

Link copied to clipboard

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

Link copied to clipboard

CenterThinning property transition options.

Link copied to clipboard

Snow particles color. Default value: "#ffffff".

Link copied to clipboard

Snow particles color. Default value: "#ffffff".

Link copied to clipboard

Snow particles color. Default value: "#ffffff".

Link copied to clipboard

Color property transition options.

Link copied to clipboard

Snow particles density. Controls the overall particles number. Default value: "["interpolate","linear","zoom",11,0,13,0.85]". Value range: 0, 1

Link copied to clipboard

Snow particles density. Controls the overall particles number. Default value: "["interpolate","linear","zoom",11,0,13,0.85]". Value range: 0, 1

Link copied to clipboard

Density property transition options.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Direction property transition options.

Link copied to clipboard

Snow flake particle size. Correlates with individual particle screen size Default value: 0.71. Value range: 0, 5

Link copied to clipboard

Snow flake particle size. Correlates with individual particle screen size Default value: 0.71. Value range: 0, 5

Link copied to clipboard

FlakeSize property transition options.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Intensity property transition options.

Link copied to clipboard

Snow particles opacity. Default value: 1. Value range: 0, 1

Link copied to clipboard

Snow particles opacity. Default value: 1. Value range: 0, 1

Link copied to clipboard

Opacity property transition options.

Link copied to clipboard

Snow vignette screen-space effect. Adds snow tint to screen corners Default value: "["interpolate","linear","zoom",11,0,13,0.3]". Value range: 0, 1

Link copied to clipboard

Snow vignette screen-space effect. Adds snow tint to screen corners Default value: "["interpolate","linear","zoom",11,0,13,0.3]". Value range: 0, 1

Link copied to clipboard

Snow vignette screen-space corners tint color. Default value: "#ffffff".

Link copied to clipboard

Snow vignette screen-space corners tint color. Default value: "#ffffff".

Link copied to clipboard

Snow vignette screen-space corners tint color. Default value: "#ffffff".

Link copied to clipboard

VignetteColor property transition options.

Link copied to clipboard

Vignette property transition options.