|
1.
|
|
|
Transforms and Transitions in Python
|
|
|
|
Transformações e transições em Python
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/trans_trans_python.rst:6
|
|
2.
|
|
|
Python can be used to create new transforms and transitions for use by Ren'Py scripts.
|
|
|
|
Python pode ser usado para criar novas transformações e transições para uso por scripts Ren'Py.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/trans_trans_python.rst:8
|
|
3.
|
|
|
Transforms
|
|
|
|
Transformações
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/trans_trans_python.rst:12
|
|
4.
|
|
|
A transform is a python callable that, when called with a displayable, returns another displayable.
|
|
|
|
Uma transformação é um python chamável que, quando chamado com um displayable, retorna outro displayable.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/trans_trans_python.rst:14
|
|
5.
|
|
|
For example::
|
|
|
|
Por exemplo::
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
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.
|
|
|
|
O equivalente python de uma transformação ATL é um objeto Transform.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
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.
|
|
|
|
Uma transformação aplica operações como corte, rotação, dimensionamento e combinação alfa a seu filho. Um objeto de transformação possui campos correspondentes às: ref: `propriedades de transformação <transform-properties>`, que ele aplica a seu filho.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/trans_trans_python.rst:33
|
|
8.
|
|
|
`child`
|
|
|
|
`criança`
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/trans_trans_python.rst:39
|
|
9.
|
|
|
The child the transform applies to.
|
|
|
|
O filho ao qual a transformação se aplica.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/trans_trans_python.rst:39
|
|
10.
|
|
|
`function`
|
|
|
|
`função`
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/trans_trans_python.rst:50
|