Skip to content

Particle Systems

Scene primitives for smoke, fire, weather, and trails. Particles are added to the viewer directly (not as entities).

import cesiumkit

viewer = cesiumkit.Viewer()
viewer.add_particle_system(
    cesiumkit.ParticleSystem(
        image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==",
        emission_rate=20,
        lifetime=1.0,
        speed=5.0,
        start_scale=1.0,
        end_scale=0.0,
    )
)

particle

Scene-level Cesium particle systems.

Classes:

Name Description
ParticleSystem

A particle primitive for smoke, fire, weather, and similar effects.

ParticleSystem

Bases: CesiumBase

A particle primitive for smoke, fire, weather, and similar effects.

Cesium particle systems are scene primitives rather than entity graphics. Add one with :meth:cesiumkit.Viewer.add_particle_system.