SnowDslReceiver

This Interface contains all the functions that will be exposed to Koltin DSL.

Separated the DSL receiver class to this interface to avoid IDE code suggestion for property getters.

Functions

Link copied to clipboard
abstract fun centerThinning(centerThinning: Expression): Snow
abstract fun centerThinning(centerThinning: Double = 1.0): Snow

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

Link copied to clipboard

Set the CenterThinning property transition options.

Link copied to clipboard
abstract fun color(color: Expression): Snow
abstract fun color(@ColorInt color: Int): Snow
abstract fun color(color: String = "#ffffff"): Snow

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

Link copied to clipboard

Set the Color property transition options.

Link copied to clipboard
abstract fun density(density: Expression): Snow
abstract fun density(density: Double = 1.0): Snow

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

Link copied to clipboard

Set the Density property transition options.

Link copied to clipboard
abstract fun direction(direction: Expression): Snow
abstract fun direction(direction: List<Double> = listOf(0.0, 90.0)): Snow

Main snow particles direction. Heading & pitch Default value: 0,90. Value range: 0, 360

Link copied to clipboard

Set the Direction property transition options.

Link copied to clipboard
abstract fun intensity(intensity: Expression): Snow
abstract fun intensity(intensity: Double = 1.0): Snow

Snow particles movement factor. Default value: 1. Value range: 0, 1

Link copied to clipboard

Set the Intensity property transition options.

Link copied to clipboard
abstract fun opacity(opacity: Expression): Snow
abstract fun opacity(opacity: Double = 1.0): 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
abstract fun vignette(vignette: Expression): Snow
abstract fun vignette(vignette: Double = 0.0): Snow

Snow vignette screen-space effect. Default value: 0. Value range: 0, 1

Link copied to clipboard

Set the Vignette property transition options.

Inheritors

Link copied to clipboard