ParallaxLayer

from acron.parallax import ParallaxLayer
class ParallaxLayer(canvas_root, motion_scale=(1.0, 1.0), mirroring=(0, 0), name: str = 'ParallaxLayer')

Bases: object

One layer, offset by camera * (1 - motion_scale) and wrapped by mirroring.

Inheritance diagram

digraph inheritancee86486ccdd { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "ParallaxLayer" [URL="acron.parallax.ParallaxLayer.html#acron.parallax.ParallaxLayer",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="One layer, offset by ``camera * (1 - motion_scale)`` and wrapped by mirroring."]; }