import { Module, ModuleObject } from "../module"; import { Particle } from "../particle"; import { ParticleEffect } from "../particleEffect"; /** * Module which overrides `Particle.color.a` property from a configurable random value range. * * Range can be configured with `min` and `max` properties. * * @module * @category Initializer * min { * @tooltip TODO * @type Number * @min 0 * @max 1 * @step 0.1 * @defaultValue 0 * } * max { * @tooltip TODO * @type Number * @min 0 * @max 1 * @step 0.1 * @defaultValue 1 * } */ export declare class AlphaRange extends Module { /** * Should be a number in range [0, 1] where 1 is fully opaque and 0 is completely invisible. */ min: number; /** * Should be a number in range [0, 1] where 1 is fully opaque and 0 is completely invisible. */ max: number; init(): void; handleParticleAdd: (particle: Particle) => void; /** * Wrap the properties of the module into a JSON containing only primitive JavaScript data types * (such as numbers, strings, etc.) that can be serialized into strings natively. */ toObject(): ModuleObject; static fromObject(particleEffect: ParticleEffect, object: ModuleObject, hideWarnings: boolean): AlphaRange; /** * Serializable identifier for the module. * * This must be unique between all existing Modules in the library. */ static moduleTypeId: string; }