Monday, March 23, 2015

VPython

Spring 2015
22nd of March

VPython
I followed the tutorial on Youtube and was given the assignment to replicate this 3D model:

This is what my coding came to be:


And then, they asked me to learn to use the # function, that allows the program to ignore certain lines of coding momentarily. Also they asked me to reduce the length of one of the arrows by half, and make it point in the opposite direction.

The reduced arrow is on the bottom sphere, barely visible.


The next assignment looks like this:


This is the way I code mine:


They then wanted me to double the distance of one of the sphere's y-axis, and this is what I coded:


For the final assignment, they wanted to show the function of 'print'. This is what I coded:


No comments:

Post a Comment