RainDslReceiver

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): Rain
abstract fun centerThinning(centerThinning: Double = 1.0): Rain

Thinning factor of rain 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): Rain
abstract fun color(@ColorInt color: Int): Rain
abstract fun color(color: String = "#ffffff"): Rain

Default value: "#ffffff".

Link copied to clipboard

Set the Color property transition options.

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

Rain 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): Rain
abstract fun direction(direction: List<Double> = listOf(0.0, 80.0)): Rain

Main rain particles direction. Heading & pitch Default value: 0,80. Value range: 0, 360

Link copied to clipboard

Set the Direction property transition options.

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

Rain 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): Rain
abstract fun opacity(opacity: Double = 1.0): Rain

Rain 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): Rain
abstract fun vignette(vignette: Double = 0.0): Rain

Rain 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