deck.gl-particle

Particle simulation layer for deck.gl

Showing:

Popularity

Downloads/wk

7

GitHub Stars

8

Maintenance

Last Commit

1mo ago

Contributors

0

Package

Dependencies

0

License

MPL-2.0

Type Definitions

Tree-Shakeable

No?

Categories

Readme

deck.gl-particle

Particle simulation layer for deck.gl

Demo

Screenshot

Usage

Image contains particle speeds in deck.gl COORDINATE_SYSTEM.LNGLAT, u component encoded into R channel, v component encoded into G channel. See sample image.

import { Deck } from '@deck.gl/core';
import { ParticleLayer } from 'deck.gl-particle';

const deckgl = new Deck({
  layers: [
    new ParticleLayer({
      id: 'particle',
      image: ..., // see deck.gl BitmapLayer image property
      numParticles: ..., // number
      maxAge: ..., // number
      speedFactor: ..., // number
      color: ..., // [number, number, number]
      width: ..., // number
      opacity: ..., // number
    });
  ],
  _animate: true,
});

Inspired by

Weather layers as a service

WeatherLayers.com

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial