Photon through lens

This commit is contained in:
Grant Sanderson
2016-02-15 21:57:06 -08:00
parent 0053c70f01
commit 044e0b5c72
5 changed files with 85 additions and 43 deletions

View File

@ -460,6 +460,9 @@ class Mobject(object):
def get_height(self):
return self.length_over_dim(1)
def point_from_interval(self, alpha):
index = alpha*(self.get_num_points()-1)
return self.points[index]
def get_color(self):
color = Color()