Cube with Shader
-
https://gist.github.com/96faf148a678808aa79b
Demo of a spining cube that is shaded based off of a light source
Comes with a triangle function which allows you to draw shaded in triangles using pythonistas line draw function
Code is free to use/reuse