# Lab1 - b arrow1 = arrow(pos=ball1.pos axis = ball4.pos-ball1.pos color=color.magenta arrow2 = arrow(pos=ball4.pos axis = ball8.pos-ball4.pos

This preview shows page 1. Sign up to view the full content.

from __future__ import division from visual import * f ball1 = sphere(pos=vector(5,5,5), radius = .5, color=color.blue) ball2 = sphere(pos=vector(5,-5,5), radius = .5, color=color.blue) ball3 = sphere(pos=vector(-5,5,5), radius = .5, color=color.blue) ball4 = sphere(pos=vector(-5,-5,5), radius = .5, color=color.blue) ball5 = sphere(pos=vector(5,5,-5), radius = .5, color=color.blue) ball6 = sphere(pos=vector(5,-5,-5), radius = .5, color=color.blue) ball7 = sphere(pos=vector(-5,5,-5), radius = .5, color=color.blue) ball8 = sphere(pos=vector(-5,-5,-5), radius = .5, color=color.blue)
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: b arrow1 = arrow(pos=ball1.pos, axis = ball4.pos-ball1.pos, color=color.magenta) arrow2 = arrow(pos=ball4.pos, axis = ball8.pos-ball4.pos, color=color.magenta) arrow3 = arrow(pos=ball8.pos, axis = ball5.pos-ball8.pos, color=color.magenta) arrow4 = arrow(pos=ball5.pos, axis = ball1.pos-ball5.pos, color=color.magenta) a theta = 0 while theta<2*pi: sphere(pos=vector(10*cos(theta), 10*sin(theta), 0),radius=.5, color=color.cyan) theta = theta + (pi/6)...
View Full Document

## This note was uploaded on 09/12/2011 for the course PHYISCS 2212 taught by Professor Shatz during the Spring '10 term at Georgia Institute of Technology.

Ask a homework question - tutors are online