Alchemist0823 / three.quarks

Three.quarks is a general purpose particle system / VFX engine for three.js

Home Page:https://quarks.art

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Particle opacity behavior

ManHunter opened this issue · comments

I could not find a way to control the opacity of particles by analogy with ColorOverLife.
Are you planning to add this functionality?

Hey @ManHunter, In ColorOverLife, the color is a Vector4 the XYZ are for RGB, the w is for alpha (opacity)

export interface FunctionColorGenerator {
type: 'function';
genColor(color: Vector4, t: number): Vector4;
toJSON(): FunctionJSON;
clone(): FunctionColorGenerator;
}