Rain Effect

Falling raindrops over an item’s bounding area.

Usage

app.applyEffect(item, 'rain', {
  color: '#93c5fd',
  count: 15,
  speed: 2.0,
  angle: 0
});

Parameters

Parameter Type Default Description
color string '#93c5fd' Raindrop color
count number 15 Drops per spawn cycle
speed number 2.0 Fall speed multiplier
angle number 0 Wind angle (degrees)
spread number 2.0 Horizontal spread factor
size number 1.5 Raindrop size