ui.transform - Ren'Py Visual Novel Engine

documentation index ◦ reference manual ◦ function index

# ui.transform

Function: | ui.transform | (function=None, alpha=1, rotate=None, zoom=1, xzoom=1, yzoom=1, style='transform', **properties):

Wraps its child in a Transform, allowing the child to be rotated, zoomed, and alpha-modified. Parameters are as for Transform.

    # Displays a textbutton rotated 90 degrees.

    python:
       transform = ui.transform()
       ui.textbutton("Hello, World", clicked=ui.returns(True))
       transform.rotate = 90
       transform.update()

documentation index ◦ reference manual ◦ function index