ParticleSea

A sea of glowing particles

Preview

Example code

export default function Page()
{
    return(
        <GradientBackground 
            color1={{rgb: {r: 255, g: 255, b: 255}}} 
            color2={{rgb: {r: 255, g: 255, b: 255}}} 
            color3={{rgb: {r: 255, g: 255, b: 255}}} 
            color4={{rgb: {r: 255, g: 255, b: 255}}} 
        />
    )
}

Props

NameTypeDescriptionDefault
brightnessnumberBrightness of the glow effect0.5
spawnWidthnumberWidth of the area in which the particles spawn5
spawnHeightnumberHeight of the area where the particles spawn0
lifeTime0-1Life time of a particle0.999
gravitynumberThe force that pulls the particles up/down0.4
noiseFrequencynumberThe frequency of noise.3
noiseAmplitudenumberThe amplitude of noise.1
noiseEvolvenumberThe evolution speed of noise10
particleSrcstringParticle's image sourcenull
particleSizenumberThe size of a particle3
amountnumberAmount of the particles to the power of 250
startColorColorThe start color of particles{ rgb: { r: 255, g: 255, b: 255 }}
endColorColorThe end color of particles.{ rgb: { r: 255, g: 255, b: 255 }}
mouseForcenumberThe force by which the pointer sways particles0.05
mouseRadiusnumberThe radius by which pointer's swaying force takes effect0.1
velocityFalloffnumberHow fast particles lose velocity0.01

Change log

05.07.2024

  • Added mouse interactivity (mouseForce, mouseRadius, velocityFalloff)

30.06.2024

  • Added