Module Expr Str ImportFrom alias alias alias Assign NameStore Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num vararg kwarg body Expr Str If CompareNotEq NameLoad TupleLoad Num Num body Raise Call NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad TupleLoad Num Num body Assign NameStore TupleLoad NameLoad Num If CompareEq NameLoad TupleLoad Num Num body Assign NameStore TupleLoad NameLoad NameLoad If CompareEq NameLoad TupleLoad Num Num body Assign NameStore TupleLoad Num NameLoad Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Num NameLoad Expr Call AttributeLoad NameLoad attr Num Num NameLoad Expr Call AttributeLoad NameLoad attr Num Num NameLoad Expr Call AttributeLoad NameLoad attr Num Num NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword TupleLoad UnaryOpUSub NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword TupleLoad NameLoad UnaryOpUSub NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword TupleLoad UnaryOpUSub NameLoad NameLoad keyword TupleLoad NameLoad UnaryOpUSub NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword TupleLoad NameLoad NameLoad keyword TupleLoad UnaryOpUSub NameLoad NameLoad keyword TupleLoad UnaryOpUSub NameLoad UnaryOpUSub NameLoad keyword TupleLoad NameLoad UnaryOpUSub NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword TupleLoad NameLoad Num keyword TupleLoad UnaryOpUSub NameLoad Num keyword TupleLoad UnaryOpUSub NameLoad Num keyword TupleLoad NameLoad Num NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword TupleLoad Num NameLoad keyword TupleLoad Num NameLoad keyword TupleLoad Num UnaryOpUSub NameLoad keyword TupleLoad Num UnaryOpUSub NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad vararg kwarg body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore BinOpFloorDiv NameLoad Num Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword TupleLoad UnaryOpUSub NameLoad Num keyword TupleLoad NameLoad Num NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad vararg kwarg body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore BinOpFloorDiv NameLoad Num Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword TupleLoad Num NameLoad keyword TupleLoad Num UnaryOpUSub NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A Implementation of QuadMoveBy actions

These actions modifies the x and y coordinates of fixed-size grid of (1,1).
The z-coordinate is not modified.
 __future__ division print_function unicode_literals N/A __docformat__ restructuredtext N/A math cocos.director director cocos.euclid * basegrid_actions * N/A __all__ N/A QuadMoveBy MoveCornerUp MoveCornerDown CornerSwap Flip FlipX FlipY SkewHorizontal SkewVertical QuadMoveBy N/A Grid3DAction N/A N/A QuadMoveBy moves each vertex of the grid. The size of the grid is (1,1)

    Vertex positions::

        vertex3 --<-- vertex2
            |            |
            v            ^
            |            |
        vertex0 -->-- vertex1

        The vertices will move from the origin (src parameters) a relative distance (delta parameters) in duration time.

    Example::

       scene.do(QuadMoveBy(src0, src1, src2, src3,
               delta0, delta1, delta2, delta3,
               duration))


        init N/A N/A self src0 src1 src2 src3 delta0 delta1 delta2 delta3 grid N/A N/A 0 0 N/A -1 -1 N/A -1 -1 N/A -1 -1 N/A 0 0 N/A 0 0 N/A 0 0 N/A 0 0 N/A 1 1 args kw N/A N/A Initializes the QuadMoveBy

        :Parameters:
            `src0` : (int, int)
                Initial value for the bottom-left coordinate. Default is (0,0)
            `src1` : (int, int)
                Initial value for the bottom-right coordinate. Default is (win_size_x,0)
            `src2` : (int, int)
                Initial value for the upper-right coordinate. Default is (win_size_x, win_size_y)
            `src3` : (int, int)
                Initial value for the upper-left coordinate. Default is (0, win_size_y)
            `delta0` : (int, int)
                The bottom-left relative coordinate. Default is (0,0)
            `delta1` : (int, int)
                The bottom-right relative coordinate. Default is (0,0)
            `delta2` : (int, int)
                The upper-right relative coordinate. Default is (0,0)
            `delta3` : (int, int)
                The upper-left relative coordinate. Default is (0,0)
         N/A N/A grid N/A 1 1 N/A N/A N/A GridException Invalid grid size. N/A N/A N/A N/A super QuadMoveBy self init grid args kw N/A N/A x y N/A N/A director get_window_size N/A N/A src1 N/A -1 -1 N/A N/A src1 N/A x 0 N/A N/A src2 N/A -1 -1 N/A N/A src2 N/A x y N/A N/A src3 N/A -1 -1 N/A N/A src3 N/A 0 y N/A N/A self src0 N/A Point3 N/A src0 N/A 0 N/A src0 N/A 1 0 N/A N/A self src1 N/A Point3 N/A src1 N/A 0 N/A src1 N/A 1 0 N/A N/A self src2 N/A Point3 N/A src2 N/A 0 N/A src2 N/A 1 0 N/A N/A self src3 N/A Point3 N/A src3 N/A 0 N/A src3 N/A 1 0 N/A N/A self delta0 N/A Point3 N/A delta0 N/A 0 N/A delta0 N/A 1 0 N/A N/A self delta1 N/A Point3 N/A delta1 N/A 0 N/A delta1 N/A 1 0 N/A N/A self delta2 N/A Point3 N/A delta2 N/A 0 N/A delta2 N/A 1 0 N/A N/A self delta3 N/A Point3 N/A delta3 N/A 0 N/A delta3 N/A 1 0 N/A update N/A N/A self t N/A N/A N/A new_pos0 N/A N/A self src0 N/A N/A self delta0 t N/A new_pos1 N/A N/A self src1 N/A N/A self delta1 t N/A new_pos2 N/A N/A self src2 N/A N/A self delta2 t N/A new_pos3 N/A N/A self src3 N/A N/A self delta3 t N/A N/A N/A self set_vertex 0 0 new_pos0 N/A N/A N/A self set_vertex 1 0 new_pos1 N/A N/A N/A self set_vertex 1 1 new_pos2 N/A N/A N/A self set_vertex 0 1 new_pos3 N/A N/A MoveCornerUp N/A QuadMoveBy N/A N/A MoveCornerUp moves the bottom-right corner to the upper-left corner in duration time __init__ N/A N/A self N/A args kw N/A N/A N/A x y N/A N/A director get_window_size N/A N/A N/A N/A super MoveCornerUp self __init__ delta1 N/A N/A x y args kw N/A N/A MoveCornerDown N/A QuadMoveBy N/A N/A MoveCornerDown moves the upper-left corner to the bottom-right corner in duration time __init__ N/A N/A self N/A args kw N/A N/A N/A x y N/A N/A director get_window_size N/A N/A N/A N/A super MoveCornerDown self __init__ delta3 N/A x N/A y args kw N/A N/A CornerSwap N/A QuadMoveBy N/A N/A CornerSwap moves the upper-left corner to the bottom-right corner in vice-versa in duration time.
    The resulting effect is a reflection + rotation.
     __init__ N/A N/A self N/A args kw N/A N/A N/A x y N/A N/A director get_window_size N/A N/A N/A N/A super CornerSwap self __init__ delta1 N/A N/A x y delta3 N/A x N/A y args kw N/A N/A Flip N/A QuadMoveBy N/A N/A Flip moves the upper-left corner to the bottom-left corner and vice-versa, and
    moves the upper-right corner to the bottom-left corner and vice-versa, flipping the
    window upside-down, and right-left.
     __init__ N/A N/A self N/A args kw N/A N/A N/A x y N/A N/A director get_window_size N/A N/A N/A N/A super Flip self __init__ delta0 N/A x y delta1 N/A N/A x y delta2 N/A N/A x N/A y delta3 N/A x N/A y args kw N/A N/A FlipX N/A QuadMoveBy N/A N/A FlipX flips the screen horizontally, moving the left corners to the right, and vice-versa.
     __init__ N/A N/A self N/A args kw N/A N/A N/A x y N/A N/A director get_window_size N/A N/A N/A N/A super FlipX self __init__ delta0 N/A x 0 delta1 N/A N/A x 0 delta2 N/A N/A x 0 delta3 N/A x 0 args kw N/A N/A FlipY N/A QuadMoveBy N/A N/A FlipY flips the screen vertically, moving the upper corners to the bottom, and vice-versa.
     __init__ N/A N/A self N/A args kw N/A N/A N/A x y N/A N/A director get_window_size N/A N/A N/A N/A super FlipY self __init__ delta0 N/A 0 y delta1 N/A 0 y delta2 N/A 0 N/A y delta3 N/A 0 N/A y args kw N/A N/A SkewHorizontal N/A QuadMoveBy N/A N/A SkewHorizontal skews the screen horizontally. default skew: x/3 __init__ N/A N/A self delta N/A None args kw N/A N/A N/A x y N/A N/A director get_window_size N/A N/A delta None N/A N/A delta N/A x 3 N/A N/A N/A N/A super SkewHorizontal self __init__ delta1 N/A N/A delta 0 delta3 N/A delta 0 args kw N/A N/A SkewVertical N/A QuadMoveBy N/A N/A SkewVertical skews the screen vertically. default skew: y/3 __init__ N/A N/A self delta N/A None args kw N/A N/A N/A x y N/A N/A director get_window_size N/A N/A delta None N/A N/A delta N/A y 3 N/A N/A N/A N/A super SkewVertical self __init__ delta0 N/A 0 delta delta2 N/A 0 N/A delta args kw N/A N/A