badwing.firework module¶
-
class
badwing.firework.
Firework
(position=0, 0, r1=30, r2=40)¶ Bases:
badwing.effect.Effect
-
draw
()¶ Draw the sprite.
- Parameters
filter – Optional parameter to set OpenGL filter, such as gl.GL_NEAREST to avoid smoothing.
pixelated –
True
for pixelated andFalse
for smooth interpolation. Shortcut for setting filter=GL_NEAREST.blend_function – Optional parameter to set the OpenGL blend function used for drawing the sprite list, such as ‘arcade.Window.ctx.BLEND_ADDITIVE’ or ‘arcade.Window.ctx.BLEND_DEFAULT’
-
make_sparks
(position)¶
-
update
(delta_time)¶ Update the sprite.
-
-
badwing.firework.
firework_spark_mutator
(particle: arcade.particle.FadeParticle)¶ mutation_callback shared by all fireworks sparks