Commit graph

74 commits

Author SHA1 Message Date
Devin Neal
3543a750ba move library code into manimlib, replace relative imports with absolute imports 2018-12-26 20:57:01 -08:00
Grant Sanderson
585a4ff864 Bug fix to camera_center 2018-11-29 17:29:12 -08:00
Grant Sanderson
8a1f121207 Don't even try to display points with nan or infinity 2018-08-30 14:23:26 -07:00
Grant Sanderson
bfa37e251f Got rid of ValueTracker special cases in camera 2018-08-29 00:08:46 -07:00
Grant Sanderson
35a59474fe Camera shouldn't try to display ValueTrackers 2018-08-27 16:30:41 -07:00
Grant Sanderson
98801413e9 Fixed camera bugs 2018-08-22 21:22:50 -07:00
Grant Sanderson
7912f6f2d3 Implmented ThreeDScene.add_fixed_orientation_mobjects and ThreeDScene.add_fixed_in_frame_mobjects 2018-08-22 14:48:42 -07:00
Grant Sanderson
98a7f254ee Remaining submobject_family -> get_family 2018-08-21 19:16:51 -07:00
Grant Sanderson
ff134b7903 Remove z_coordinate display ordering 2018-08-20 15:48:50 -07:00
Grant Sanderson
365093c0b5 np.linalg.norm -> get_norm 2018-08-15 17:30:24 -07:00
Grant Sanderson
f926611d34 Added preliminary 3d animation abilities with (as of now poorly shaded) parametric curves 2018-08-15 16:23:29 -07:00
Grant Sanderson
d6996452e5 Make sure cairo transform accounts for frame center 2018-08-13 14:12:45 -07:00
Grant Sanderson
3ba33d543e Fixed some ThreeDCamera bugs 2018-08-12 19:04:52 -07:00
Grant Sanderson
3f6376af39 Fixed MovingCamera bug where frame was not updated properly 2018-08-12 12:46:57 -07:00
Grant Sanderson
114a37f32c DEFAULT_POINT_THICKNESS -> DEFAULT_STROKE_WIDTH 2018-08-12 00:35:54 -07:00
Grant Sanderson
d551fa6b24 Updated background_colored_vmobject displaying 2018-08-11 20:54:27 -07:00
Grant Sanderson
22d889f6dc Fixed some camera bugs 2018-08-11 19:20:09 -07:00
Grant Sanderson
3d5826229b Prevent ned to create new cairo ImageSurface with each frame 2018-08-11 16:52:06 -07:00
Grant Sanderson
087715e538 Reimplented svg rendering using cairo, and changed vmobject color model to allow for gradeints and strokes with opacities. Many errors associated with python 2 to python 3 conversion are likely still present at this point. 2018-08-10 15:12:49 -07:00
Grant Sanderson
858051a806 After running 2to3 2018-08-09 17:56:05 -07:00
Grant Sanderson
f9ce36c6f6 Camera background is opacity 0 when -t is passed in, otherwise 1 2018-08-08 11:50:34 -07:00
Grant Sanderson
3dc5b10e8b Add background stroke width to mobjects 2018-08-08 11:15:45 -07:00
Grant Sanderson
151a270913 Modernize Python 2 for Python 3 2018-07-11 11:38:59 -07:00
Grant Sanderson
d72483e909 Fixed Camera.is_in_frame 2018-06-18 13:03:56 -07:00
Grant Sanderson
60caf2312c Quick fix to a bug where ImageMobjects of size zero weren't displayed 2018-06-08 17:15:30 -07:00
Grant Sanderson
978e7c1799 Pillow was giving some troubles with creating an image from an array while setting a mode 2018-06-07 11:49:46 -07:00
Grant Sanderson
49fe36b048 Added is_in_frame method to camera 2018-05-30 12:01:47 -07:00
Grant Sanderson
13d7228918 Revert "Merge branch 'master' of github.com:3b1b/manim into alt-calc"
This reverts commit 17a1ea6db5, reversing
changes made to c8c6e6d9ba.
2018-05-21 12:11:46 -07:00
Ben Hambrecht
b2b66947db reverted to earlier version 2018-05-16 21:17:14 +02:00
Grant Sanderson
ecd48d885e Start tracking pixel_height and pixel_width instead of pixel_shape, since all uses of it involved unpacking anyway, and the ordering makes it harder to read and edit. 2018-05-14 13:52:44 -07:00
Grant Sanderson
f04b2e270c Refactoring how Camera frame height and width are handled 2018-05-11 17:41:37 -07:00
Grant Sanderson
80176f0940 Replaced background_alpha with background_opacity 2018-05-10 19:55:06 -07:00
Grant Sanderson
d36a68f756 Cleanup of ZoomedScene updates 2018-05-10 19:46:10 -07:00
Grant Sanderson
8703e2336c Fixing various in ZoomedScene 2018-05-10 19:20:18 -07:00
Grant Sanderson
7ee85faadd Reimplemented ZoomedScene, using a new MultiCamera 2018-05-10 15:55:31 -07:00
Grant Sanderson
1f394ca2eb Reimplemented Camera.display_image_mobject 2018-05-09 18:55:12 -07:00
Grant Sanderson
d4392de600 Changed all files to (mostly) conform to PEP8 2018-04-06 13:58:59 -07:00
Grant Sanderson
fc3dc64805 Refactor many definitions out of topics and into folders within mobject 2018-03-31 18:05:02 -07:00
Grant Sanderson
087f66aca5 Reorganized camera folder 2018-03-31 15:20:30 -07:00
Grant Sanderson
0978984541 Reorganized animations folder. Warning: While I tried to be systematic, there is a decent chance this will cause import errors somewhere. 2018-03-31 15:11:35 -07:00
Grant Sanderson
8fae39fe82 Refactored helpers.py into a folder of various util files 2018-03-30 18:19:23 -07:00
Grant Sanderson
3ec4d89e10 Renamed DEFAULT_HEIGHT to DEFAULT_PIXEL_HEIGHT 2018-03-30 11:36:06 -07:00
Grant Sanderson
213c615870 Changed camera implementation by renaming space_shape to frame_shape, where its height and width actually correspond to the camera's height and width 2018-03-30 11:34:22 -07:00
Grant Sanderson
e168bfe5ba Rename SPACE_X_RADIUS to FRAME_X_RADIUS, and added constant FRAME_WIDTH (likewise for all y-coordinate information) 2018-03-30 11:25:37 -07:00
Grant Sanderson
55786e443d Renamed SPACE_WIDTH and SPACE_HEIGHT to SPACE_X_RADIUS and SPACE_Y_RADIUS to be less confusing 2018-03-30 11:03:14 -07:00
Sridhar Ramesh
db50339424 Incremental 2018-03-09 10:32:19 -08:00
Grant Sanderson
0c7c324271
Merge pull request #140 from 3b1b/WindingNumber
Winding number
2018-02-26 16:23:50 -08:00
Sridhar Ramesh
1b9cde00d9 Minor fix to camera.py, making SplitScreenCameras work again after some change to background handling made them crash 2018-02-26 11:47:37 -08:00
Grant Sanderson
4c1934fe4f Fixed typo 2018-02-24 19:09:08 -08:00
Sridhar Ramesh
e4569a6f63 Merge branch 'master' of https://github.com/3b1b/manim into WindingNumber 2018-02-20 21:54:50 -08:00