|
2.
|
|
|
Python can be used to create new transforms and transitions for use by Ren'Py scripts.
|
|
|
|
Python は Ren'Py で使用するための新しい変換とトランジションの作成に使用出来ます。
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/trans_trans_python.rst:8
|
|
3.
|
|
|
Transforms
|
|
|
|
変換
|
|
Translated by
akakyouryuu
|
|
Reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/trans_trans_python.rst:12
|
|
4.
|
|
|
A transform is a python callable that, when called with a displayable, returns another displayable.
|
|
|
|
変換とは呼び出し可能な python で、 displayable を引数に呼び出されて別の displayable を返します。
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/trans_trans_python.rst:14
|
|
5.
|
|
|
For example::
|
|
|
|
例 ::
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
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.
|
|
|
|
ATL 変換と等価な python は Transform オブジェクトです。
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
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.
|
|
|
|
変換は cropping や rotation, scaling, alpha-blending のような処理をその子に適用します。 transform オブジェクトはその子に適用する :ref:`変換プロパティー <transform-properties>` に対応するフィールドを持ちます。
|
|
Translated by
akakyouryuu
|
|
Reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/trans_trans_python.rst:33
|
|
8.
|
|
|
`child`
|
|
|
|
`child`
|
|
Translated by
Koichi Akabe
|
|
|
|
Located in
../../source/trans_trans_python.rst:39
|
|
9.
|
|
|
The child the transform applies to.
|
|
|
|
変換が適用される子
|
|
Translated by
akakyouryuu
|
|
Reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/trans_trans_python.rst:39
|
|
10.
|
|
|
`function`
|
|
|
|
`function`
|
|
Translated by
Koichi Akabe
|
|
|
|
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:
|
|
|
|
None を設定するか、変換がレンダリングされるときに呼び出される関数を設定します。関数は3つの引数で呼び出されます。
|
|
Translated and reviewed by
Koichi Akabe
|
|
|
|
Located in
../../source/trans_trans_python.rst:42
|