:orphan: .. _sprite_depth_cosine: Sprite Depth Controlled by a Cosine Wave ======================================== .. image:: images/sprite_depth_cosine.png :width: 600px :align: center :alt: Screenshot of sprites whose depth value is controlled by time-dependent cosine wave. .. literalinclude:: ../../arcade/examples/sprite_depth_cosine.py :caption: sprite_depth_cosine.py :linenos: