<s> from visual import * <EOL> scene . background = color . gray ( <NUM_LIT> ) <EOL> checkerboard = array ( [ [ <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:1> ] , <EOL> [ <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:1> ] , <EOL> [ <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:0> ] , <EOL> [ <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:0> ] ] , float ) <EOL> lum = materials . texture ( data = checkerboard , <EOL> mapping = "<STR_LIT>" , <EOL> interpolate = False ) <EOL> op = materials . texture ( data = checkerboard , <EOL> channels = [ "<STR_LIT>" ] , <EOL> mapping = "<STR_LIT>" , <EOL> interpolate = False ) <EOL> balp1 = box ( axis = ( <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:1> ) , color = color . orange , material = op ) <EOL> blum1 = box ( axis = ( <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:1> ) , color = color . orange , material = lum , pos = ( - <NUM_LIT:2> , <NUM_LIT:0> ) ) <EOL> box ( pos = ( <NUM_LIT:0> , <NUM_LIT:2> ) , color = color . orange , opacity = <NUM_LIT:0.5> ) <EOL> box ( pos = ( <NUM_LIT:0> , - <NUM_LIT:2> ) , color = color . orange ) <EOL> blum2 = box ( pos = ( <NUM_LIT:0> , <NUM_LIT:0> , - <NUM_LIT:2> ) , axis = ( <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:1> ) , color = color . orange , material = lum ) <EOL> z = arrow ( color = color . green ) <EOL> z . axis *= <NUM_LIT:2> <EOL> scene . mouse . getclick ( ) <EOL> save = array ( checkerboard [ : , <NUM_LIT:1> ] ) <EOL> checkerboard [ : , <NUM_LIT:1> ] = checkerboard [ : , <NUM_LIT:2> ] <EOL> checkerboard [ : , <NUM_LIT:2> ] = save <EOL> save = array ( checkerboard [ <NUM_LIT:1> , : ] ) <EOL> checkerboard [ <NUM_LIT:1> , : ] = checkerboard [ <NUM_LIT:2> , : ] <EOL> checkerboard [ <NUM_LIT:2> , : ] = save <EOL> lum = materials . texture ( data = checkerboard , <EOL> mapping = "<STR_LIT>" , <EOL> interpolate = False ) <EOL> op = materials . texture ( mipmap = False , data = checkerboard , <EOL> channels = [ "<STR_LIT>" ] , <EOL> mapping = "<STR_LIT>" , <EOL> interpolate = False ) <EOL> balp1 . material = op <EOL> blum1 . material = lum <EOL> blum2 . material = lum </s>
