### Navigation

- index
- modules |
- next |
- previous |
- cocos »
- cocos package »

# cocos.particle_systems module

Pre-defined Particle Systems

class `Fireworks`(fallback=None)

  Bases: `cocos.particle.ParticleSystem`

  `angle` = 90
  `angle_var` = 20
  `blend_additive` = False
  `color_modulate` = True
  `duration` = -1
  `emission_rate` = 857.14285714285711
  `end_color` = <cocos.particle.Color object at 0x066D9830>
  `end_color_var` = <cocos.particle.Color object at 0x066D9810>
  `gravity` = Point2(0.00, -90.00)
  `life` = 3.5
  `life_var` = 1
  `pos_var` = Point2(0.00, 0.00)
  `radial_accel` = 0
  `radial_accel_var` = 0
  `size` = 8.0
  `size_var` = 2.0
  `speed` = 180
  `speed_var` = 50
  `start_color` = <cocos.particle.Color object at 0x0645D810>
  `start_color_var` = <cocos.particle.Color object at 0x066D9930>
  `total_particles` = 3000

class `Spiral`(fallback=None)

  Bases: `cocos.particle.ParticleSystem`

  `angle` = 90.0
  `angle_var` = 0.0
  `blend_additive` = True
  `color_modulate` = True
  `duration` = -1
  `emission_rate` = 41.666666666666664
  `end_color` = <cocos.particle.Color object at 0x066D9A90>
  `end_color_var` = <cocos.particle.Color object at 0x066D9AB0>
  `gravity` = Point2(0.00, 0.00)
  `life` = 12.0
  `life_var` = 0.0
  `pos_var` = Point2(0.00, 0.00)
  `radial_accel` = -380
  `radial_accel_var` = 0
  `size` = 20.0
  `size_var` = 10.0
  `speed` = 150.0
  `speed_var` = 0.0
  `start_color` = <cocos.particle.Color object at 0x066D9A50>
  `start_color_var` = <cocos.particle.Color object at 0x066D9A70>
  `tangential_accel` = 45.0
  `tangential_accel_var` = 0.0
  `total_particles` = 500

class `Meteor`(fallback=None)

  Bases: `cocos.particle.ParticleSystem`

  `angle` = 90.0
  `angle_var` = 360.0
  `blend_additive` = True
  `color_modulate` = True
  `duration` = -1
  `emission_rate` = 75.0
  `end_color` = <cocos.particle.Color object at 0x066D9B10>
  `end_color_var` = <cocos.particle.Color object at 0x066D9B30>
  `gravity` = Point2(-200.00, 100.00)
  `life` = 2.0
  `life_var` = 1.0
  `pos_var` = Point2(0.00, 0.00)
  `radial_accel` = 0
  `radial_accel_var` = 0
  `size` = 60.0
  `size_var` = 10.0
  `speed` = 15.0
  `speed_var` = 5.0
  `start_color` = <cocos.particle.Color object at 0x066D9AD0>
  `start_color_var` = <cocos.particle.Color object at 0x066D9AF0>
  `tangential_accel` = 0.0
  `tangential_accel_var` = 0.0
  `total_particles` = 150

class `Sun`(fallback=None)

  Bases: `cocos.particle.ParticleSystem`

  `angle` = 90.0
  `angle_var` = 360.0
  `blend_additive` = True
  `color_modulate` = True
  `duration` = -1
  `emission_rate` = 350.0
  `end_color` = <cocos.particle.Color object at 0x066D9A10>
  `end_color_var` = <cocos.particle.Color object at 0x066D9A30>
  `gravity` = Point2(0.00, 0.00)
  `life` = 1.0
  `life_var` = 0.5
  `pos_var` = Point2(0.00, 0.00)
  `radial_accel` = 0
  `radial_accel_var` = 0
  `size` = 40.0
  `size_var` = 0.0
  `speed` = 20.0
  `speed_var` = 5.0
  `start_color` = <cocos.particle.Color object at 0x06469C10>
  `start_color_var` = <cocos.particle.Color object at 0x066D99F0>
  `tangential_accel` = 0.0
  `tangential_accel_var` = 0.0
  `total_particles` = 350

class `Fire`(fallback=None)

  Bases: `cocos.particle.ParticleSystem`

  `angle` = 90.0
  `angle_var` = 10.0
  `blend_additive` = True
  `color_modulate` = True
  `duration` = -1
  `emission_rate` = 83.333333333333329
  `end_color` = <cocos.particle.Color object at 0x066D9950>
  `end_color_var` = <cocos.particle.Color object at 0x066D9970>
  `gravity` = Point2(0.00, 0.00)
  `life` = 3.0
  `life_var` = 0.25
  `pos_var` = Point2(40.00, 20.00)
  `radial_accel` = 0
  `radial_accel_var` = 0
  `size` = 100.0
  `size_var` = 10.0
  `speed` = 60.0
  `speed_var` = 20.0
  `start_color` = <cocos.particle.Color object at 0x066D98D0>
  `start_color_var` = <cocos.particle.Color object at 0x066D98B0>
  `total_particles` = 250

class `Galaxy`(fallback=None)

  Bases: `cocos.particle.ParticleSystem`

  `angle` = 90.0
  `angle_var` = 360.0
  `blend_additive` = True
  `color_modulate` = True
  `duration` = -1
  `emission_rate` = 50.0
  `end_color` = <cocos.particle.Color object at 0x066D9B90>
  `end_color_var` = <cocos.particle.Color object at 0x066D9BB0>
  `gravity` = Point2(0.00, 0.00)
  `life` = 4.0
  `life_var` = 1.0
  `pos_var` = Point2(0.00, 0.00)
  `radial_accel` = -80.0
  `radial_accel_var` = 0
  `size` = 37.0
  `size_var` = 10.0
  `speed` = 60.0
  `speed_var` = 10.0
  `start_color` = <cocos.particle.Color object at 0x066D9B50>
  `start_color_var` = <cocos.particle.Color object at 0x066D9B70>
  `tangential_accel` = 80.0
  `tangential_accel_var` = 0.0
  `total_particles` = 200

class `Flower`(fallback=None)

  Bases: `cocos.particle.ParticleSystem`

  `angle` = 90.0
  `angle_var` = 360.0
  `blend_additive` = True
  `color_modulate` = True
  `duration` = -1
  `emission_rate` = 125.0
  `end_color` = <cocos.particle.Color object at 0x066D99B0>
  `end_color_var` = <cocos.particle.Color object at 0x066D99D0>
  `gravity` = Point2(0.00, 0.00)
  `life` = 4.0
  `life_var` = 1.0
  `pos_var` = Point2(0.00, 0.00)
  `radial_accel` = -60
  `radial_accel_var` = 0
  `size` = 30.0
  `size_var` = 0.0
  `speed` = 80.0
  `speed_var` = 10.0
  `start_color` = <cocos.particle.Color object at 0x06469CD0>
  `start_color_var` = <cocos.particle.Color object at 0x066D9990>
  `tangential_accel` = 15.0
  `tangential_accel_var` = 0.0
  `total_particles` = 500

class `Explosion`(fallback=None)

  Bases: `cocos.particle.ParticleSystem`

  `angle` = 90.0
  `angle_var` = 360.0
  `blend_additive` = False
  `color_modulate` = True
  `duration` = 0.10000000000000001
  `emission_rate` = 7000.0
  `end_color` = <cocos.particle.Color object at 0x066D9850>
  `end_color_var` = <cocos.particle.Color object at 0x066D98F0>
  `gravity` = Point2(0.00, -90.00)
  `life` = 5.0
  `life_var` = 2.0
  `pos_var` = Point2(0.00, 0.00)
  `radial_accel` = 0
  `radial_accel_var` = 0
  `size` = 15.0
  `size_var` = 10.0
  `speed` = 70.0
  `speed_var` = 40.0
  `start_color` = <cocos.particle.Color object at 0x066D9890>
  `start_color_var` = <cocos.particle.Color object at 0x066D9870>
  `total_particles` = 700

class `Smoke`(fallback=None)

  Bases: `cocos.particle.ParticleSystem`

  `angle` = 90.0
  `angle_var` = 10.0
  `blend_additive` = True
  `color_modulate` = False
  `duration` = -1
  `emission_rate` = 20.0
  `end_color` = <cocos.particle.Color object at 0x066D9C10>
  `end_color_var` = <cocos.particle.Color object at 0x066D9C30>
  `gravity` = Point2(0.00, 0.00)
  `life` = 4.0
  `life_var` = 1.0
  `pos_var` = Point2(0.10, 0.00)
  `radial_accel` = 5
  `radial_accel_var` = 0
  `size` = 40.0
  `size_var` = 10.0
  `speed` = 25.0
  `speed_var` = 10.0
  `start_color` = <cocos.particle.Color object at 0x066D9BD0>
  `start_color_var` = <cocos.particle.Color object at 0x066D9BF0>
  `tangential_accel` = 0.0
  `tangential_accel_var` = 0.0
  `total_particles` = 80

### Navigation

- index
- modules |
- next |
- previous |
- cocos »
- cocos package »