If you mean what's the general way people do this then I'd suggest examining the asteroids example. Use sprites and the order they are drawn is the order they will appear. You could then look at Batches and Groups to see how to organise them efficiently like you refer to layers.
- https://pyglet.readthedocs.io/en/pyglet-1.3-maintenance/modules/graphics/index.html#batches-and-groups On the other hand if you mean to change how the blend occurs then consider this: 99% of the time people use gl.glBlendFunc in this way: pyglet.gl.glEnable(pyglet.gl.GL_BLEND) pyglet.gl.glBlendFunc(pyglet.gl.GL_SRC_ALPHA, pyglet.gl. GL_ONE_MINUS_SRC_ALPHA) to use the alpha in an image as a mask. but you want a different notion of blending where the colors mix. There are many ways to do this. The different options are in the table below but this page does not explain how to use them to get the effect you want. This page does. Go crazy :) - https://www.andersriggelsen.dk/glblendfunc.php Swap the first and second args in the above code until you get what you need. or read up on openGL blending functon here and make an informed choice: - https://www.khronos.org/opengl/wiki/GlBlendFunc you could start with: pyglet.gl.glEnable(pyglet.gl.GL_BLEND) pyglet.gl.glBlendFunc(pyglet.gl.GL_SRC_COLOR, pyglet.gl. GL_ONE_MINUS_SRC_COLOR) or additive blending: pyglet.gl.GL_SRC_ALPHA, pyglet.gl.GL_ONE -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
