Home Reference Source

src/behaviour/constants.js

  1. import { easeLinear } from '../ease';
  2.  
  3. export const DEFAULT_LIFE = Infinity;
  4. export const DEFAULT_ATTRACITON_RADIUS = 1000;
  5. export const DEFAULT_ATTRACTION_FORCE_SCALAR = 100;
  6. export const DEFAULT_BEHAVIOUR_EASING = easeLinear;
  7. export const DEFAULT_BEHAVIOUR_EASING_TYPE = 'easeLinear';
  8. export const DEFAULT_RANDOM_DRIFT_DELAY = 0.03;
  9. export const PARTICLE_ALPHA_THRESHOLD = 0.002;
  10. export const PARTICLE_LENGTH_SQ_THRESHOLD = 0.000004;
  11. export const DEFAULT_CROSS_TYPE = 'dead';