Skip to content

particle vortex

Artem Alagizov edited this page Jan 4, 2020 · 6 revisions
particalized-3000
particalizedImage

settings used to create the example image above

import React from "react";
import { ParticleVortex } from "particalizor-3000";

export const ParticleVortexApp: React.FC<IParticleVortexAppProps> = ({}) => {
  return (
    <ParticleVortex
      imageWidth={840}
      imageHeight={384}
      vortexNumber={7}
      particleTraceWidth={2}
      particleNumber={2400}
      particleLifeTime={100}
    />
  );
}

api

property type required default acceptable values description
vortexNumber number yes 7 > 0 number of vortexes
imageWidth number yes 400 > 0 width of the resulting image
imageHeight number yes 400 > 0 height of the resulting image
particleNumber number no 7000 > 0 number of particles
particleTraceWidth number no 1 > 0 width of a particle trace, essentially canvas lineWidth
particleLifeTime number no 700 > 0 lifetime of a particle
randomizeSettings* boolean no false true,false randomize properties that are not passed in

* not available yet

property value falls back to default if provided proprety value is not acceptable

example usage

import React from "react";
import { ParticleVortex } from "particalizor-3000";

export const ParticleVortexApp: React.FC<IParticleVortexAppProps> = ({}) => {
  return (
    <ParticleVortex
      imageWidth={840}
      imageHeight={384}
      vortexNumber={7}
    />
  );
}
Clone this wiki locally