[yt-svn] commit/cookbook: samskillman: Be a bit more descriptive.
Bitbucket
commits-noreply at bitbucket.org
Mon Dec 12 10:44:31 PST 2011
1 new commit in cookbook:
https://bitbucket.org/yt_analysis/cookbook/changeset/1407a60b92c0/
changeset: 1407a60b92c0
user: samskillman
date: 2011-12-12 19:44:13
summary: Be a bit more descriptive.
affected #: 1 file
diff -r 5fae7bd246f7bbcdabb55c302a55d39c3752aa71 -r 1407a60b92c08f571720562fead6b51b3d41a6bb recipes/camera_movement.py
--- a/recipes/camera_movement.py
+++ b/recipes/camera_movement.py
@@ -33,17 +33,17 @@
cam = pf.h.camera(c, L, W, (Nvec,Nvec), tf, north_vector=north_vector)
frame = 0
-# Do a rotation
+# Do a rotation over 30 frames
for i, snapshot in enumerate(cam.rotation(na.pi, 30)):
write_bitmap(snapshot, 'camera_movement_%04i.png' % frame)
frame += 1
-# Move to the maximum density location
+# Move to the maximum density location over 10 frames
for i, snapshot in enumerate(cam.move_to(max_c, 10)):
write_bitmap(snapshot, 'camera_movement_%04i.png' % frame)
frame += 1
-# Zoom in
+# Zoom in by a factor of 10 over 10 frames
for i, snapshot in enumerate(cam.zoomin(10.0, 10)):
write_bitmap(snapshot, 'camera_movement_%04i.png' % frame)
frame += 1
Repository URL: https://bitbucket.org/yt_analysis/cookbook/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list