2015-06-10 22:00:35 -07:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import numpy as np
|
|
|
|
import itertools as it
|
|
|
|
from copy import deepcopy
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
from animation import *
|
|
|
|
from mobject import *
|
|
|
|
from constants import *
|
|
|
|
from region import *
|
2015-08-07 18:10:00 -07:00
|
|
|
from scene import Scene, RearrangeEquation
|
2015-06-10 22:00:35 -07:00
|
|
|
from script_wrapper import command_line_create_scene
|
|
|
|
|
|
|
|
|
2015-08-07 18:10:00 -07:00
|
|
|
class SampleScene(RearrangeEquation):
|
2015-06-10 22:00:35 -07:00
|
|
|
def construct(self):
|
2015-08-12 14:24:36 -07:00
|
|
|
three = tex_mobject("3")
|
|
|
|
three.sort_points(np.linalg.norm)
|
|
|
|
self.animate(DelayByOrder(ApplyMethod(three.scale, 3)))
|
|
|
|
|
2015-08-08 20:42:34 -07:00
|
|
|
self.dither()
|
|
|
|
|
2015-06-19 08:31:02 -07:00
|
|
|
|
2015-06-10 22:00:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2015-06-19 08:31:02 -07:00
|
|
|
command_line_create_scene()
|