tsParticles - v0.0.0
    Preparing search index...
    • Creates a gradient using two particles colors and opacity.

      Parameters

      • context: CanvasRenderingContext2D

        The canvas context to draw on.

      • p1: Particle

        The first particle.

      • p2: Particle

        The second particle.

      • opacity: number

        The opacity of the gradient.

      Returns CanvasGradient | undefined

      The gradient.