Transformable
The Transformable mixin adds transformation capabilities—translation, rotation, and scaling—to SVG elements. It is intended for use with group elements.
pydreamplet.core.Transformable
Initializes transformation properties with position, scale, and rotation angle.
Parameters
pos
(Vector, optional): Position vector (default: (0, 0)).scale
(Vector, optional): Scale vector (default: (1, 1)).angle
(float): Rotation angle (default: 0).
pos
Getter: Returns the current position as a Vector.
Setter: Updates the position and refreshes the transform.
scale
Getter: Returns the current scale as a Vector.
Setter: Updates the scale and refreshes the transform.
angle
Getter: Returns the current rotation angle.
Setter: Updates the angle and refreshes the transform.