<s> from __future__ import absolute_import , division , print_function , unicode_literals <EOL> """<STR_LIT>""" <EOL> import demo <EOL> import pi3d <EOL> DISPLAY = pi3d . Display . create ( x = <NUM_LIT:100> , y = <NUM_LIT:100> ) <EOL> shader = pi3d . Shader ( "<STR_LIT>" ) <EOL> tex = pi3d . Texture ( "<STR_LIT>" ) <EOL> box = pi3d . Cuboid ( w = <NUM_LIT:100> , h = <NUM_LIT:100> , d = <NUM_LIT:100> , x = <NUM_LIT:0> , y = <NUM_LIT:0> , z = <NUM_LIT> ) <EOL> box . set_draw_details ( shader , [ tex ] ) <EOL> tm = <NUM_LIT:0.0> <EOL> dt = <NUM_LIT> <EOL> sc = <NUM_LIT:0.0> <EOL> ds = <NUM_LIT> <EOL> mykeys = pi3d . Keyboard ( ) <EOL> ASPECT = DISPLAY . width / DISPLAY . height <EOL> camera1 = pi3d . Camera ( ( <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) , ( <NUM_LIT:0> , <NUM_LIT:0> , - <NUM_LIT:0.1> ) , ( <NUM_LIT:1> , <NUM_LIT:1000> , <NUM_LIT> , ASPECT ) , is_3d = True ) <EOL> camera2 = pi3d . Camera ( is_3d = False ) <EOL> while DISPLAY . loop_running ( ) : <EOL> box . set_custom_data ( <NUM_LIT> , [ tm , sc , - <NUM_LIT:0.5> * sc ] ) <EOL> """<STR_LIT>""" <EOL> tm += dt <EOL> sc = ( sc + ds ) % <NUM_LIT> <EOL> box . rotateIncX ( <NUM_LIT:0.1> ) <EOL> box . rotateIncY ( <NUM_LIT> ) <EOL> box . position ( - <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) <EOL> box . draw ( camera = camera1 ) <EOL> box . position ( <NUM_LIT:0.0> , <NUM_LIT:0.0> , <NUM_LIT> ) <EOL> box . draw ( camera = camera2 ) <EOL> if mykeys . read ( ) == <NUM_LIT> : <EOL> mykeys . close ( ) <EOL> DISPLAY . destroy ( ) <EOL> break </s>
