This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Name : Michael Minogue | |
Course : CMPS 1500-01 | |
Lab Section : Tuesday 11:00 am-12:00 pm | |
Assignment : hw9pr1 | |
Date : 11/10/2014 | |
""" | |
class Node: | |
# data | |
# next |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.app import App | |
from kivy.uix.widget import Widget | |
from kivy.properties import NumericProperty, ReferenceListProperty,\ | |
ObjectProperty,ListProperty | |
from kivy.vector import Vector | |
from kivy.clock import Clock | |
from kivy.graphics import Color, Ellipse, Line | |
from kivy.modules.touchring import* | |
class BouncyBall(Widget): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
def makeMaterial(name, diffuse, specular, alpha): #Easy to use function for making cube materials | |
mat = bpy.data.materials.new(name) | |
mat.diffuse_color = diffuse | |
mat.diffuse_shader = 'LAMBERT' | |
mat.diffuse_intensity = 1.0 | |
mat.specular_color = specular | |
mat.specular_shader = 'COOKTORR' | |
mat.specular_intensity = 0.5 |