Module ImportFrom alias alias alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Str Assign NameStore Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpDiv BinOpSub BinOpAdd BinOpSub BinOpMult Num NameLoad NameLoad BinOpMult Num NameLoad BinOpMult Num NameLoad Num Assign NameStore BinOpDiv BinOpSub BinOpSub BinOpSub NameLoad BinOpMult Num NameLoad BinOpMult Num NameLoad BinOpMult Num NameLoad Num Return TupleLoad NameLoad NameLoad decorator_list Assign TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore TupleLoad NameLoad NameLoad Assign NameStore TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num For NameStore NameLoad body Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A __future__ division print_function unicode_literals N/A sys N/A os N/A N/A N/A N/A sys path insert 0 N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ .. N/A testinfo s, t 2.0, s, t 3.0, s, t 5.0, s, q N/A tags Bezier, path N/A cocos cocos.director director cocos.actions Bezier cocos.sprite Sprite N/A pyglet cocos path direct_bezier N/A N/A p0 p1 p2 p3 N/A N/A N/A Given four points, returns a bezier path that go through them.

    It starts in p0, finish in p3, and pass through p1 and p2 in t=0.4 and
    t=0.6 respectively.
     _one_dim N/A N/A p0xy B1xy B2xy p3xy N/A N/A N/A Calculates the p1 and p2 to draw through B1 and B2 given p0 and p3.

        p0: P sub 0 of bezier, it's also B(0)
        B1: B(0.4)
        B2: B(0.6)
        p3: P sub 3 of bezier, it's also B(1)
         N/A p2xy N/A N/A N/A N/A N/A 1.5 B2xy B1xy N/A 0.12 p0xy N/A 0.26 p3xy 0.36 N/A p1xy N/A N/A N/A N/A B2xy N/A 0.064 p0xy N/A 0.432 p2xy N/A 0.216 p3xy 0.288 N/A N/A p1xy p2xy N/A N/A N/A bp1x bp2x N/A _one_dim N/A p0 N/A 0 N/A p1 N/A 0 N/A p2 N/A 0 N/A p3 N/A 0 N/A N/A bp1y bp2y N/A _one_dim N/A p0 N/A 1 N/A p1 N/A 1 N/A p2 N/A 1 N/A p3 N/A 1 N/A bp1 N/A bp1x bp1y N/A bp2 N/A bp2x bp2y N/A bezier_path N/A N/A path Bezier p0 p3 bp1 bp2 N/A bezier_path N/A TestLayer N/A N/A N/A cocos layer Layer N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super TestLayer self __init__ N/A go_through N/A N/A 100 300 N/A 370 330 N/A 430 270 N/A 750 550 N/A pos go_through N/A N/A sprite N/A Sprite fire.png N/A N/A sprite position pos N/A N/A sprite scale 0.3 N/A N/A N/A self add sprite N/A bezier_path N/A direct_bezier go_through N/A sprite N/A Sprite fire.png N/A N/A sprite scale 0.3 N/A N/A sprite color N/A 0 0 255 N/A N/A N/A self add sprite z 5 N/A N/A N/A sprite do N/A Bezier bezier_path 5 N/A N/A main N/A N/A N/A N/A N/A N/A N/A director init width 800 height 600 N/A test_layer N/A TestLayer N/A main_scene N/A N/A N/A cocos scene Scene test_layer N/A N/A N/A director run main_scene N/A N/A N/A __name__ __main__ N/A N/A N/A main