|
2.
|
|
|
Python can be used to create new transforms and transitions for use by Ren'Py scripts.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/trans_trans_python.rst:8
|
|
3.
|
|
|
Transforms
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/trans_trans_python.rst:12
|
|
4.
|
|
|
A transform is a python callable that, when called with a displayable, returns another displayable.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/trans_trans_python.rst:14
|
|
5.
|
|
|
For example::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/trans_trans_python.rst:17
../../source/trans_trans_python.rst:93
|
|
6.
|
|
|
The python equivalent of an ATL transform is a Transform object.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/trans_trans_python.rst:29
|
|
7.
|
|
|
A transform applies operations such as cropping, rotation, scaling, and alpha-blending to its child. A transform object has fields corresponding to the :ref:`transform properties <transform-properties>`, which it applies to its child.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/trans_trans_python.rst:33
|
|
8.
|
|
|
`child`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/trans_trans_python.rst:39
|
|
9.
|
|
|
The child the transform applies to.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/trans_trans_python.rst:39
|
|
10.
|
|
|
`function`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/trans_trans_python.rst:50
|
|
11.
|
|
|
If not none, this is a function that is called when the transform is rendered. The function is called with three arguments:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/trans_trans_python.rst:42
|