Loading...
Uploaded by urnerk on Apr 26, 2008
We use VPython to give students some interesting visual feedback, right from the get to. Saturday Academy class, Portland, Oregon, 2008
Education
Standard YouTube License
I am running Debian "etch". These instructions are about the same for any Ubuntu users.
I merely did an
apt-get install python-visual --
Here's the code:
[YouTube messed up format]
from visual import *
from random import randint
thecolors=[color.green, color.red, color.orange, color.magenta]
for i in range(1000): place=(randint(-100,100),randint(-100,100),randint(-10,10)) rcolor=randint(0,3) rsize=randint(0,3) ball=sphere(pos=place,radius=rsize,color=thecolors[rcolor])
pcardout 3 years ago
Load more suggestions
I am running Debian "etch". These instructions are about the same for any Ubuntu users.
I merely did an
apt-get install python-visual --
Here's the code:
[YouTube messed up format]
from visual import *
from random import randint
thecolors=[color.green, color.red, color.orange, color.magenta]
for i in range(1000): place=(randint(-100,100),randint(-100,100),randint(-10,10)) rcolor=randint(0,3) rsize=randint(0,3) ball=sphere(pos=place,radius=rsize,color=thecolors[rcolor])
pcardout 3 years ago