#12827: Expand Animation class to accept more graphics types
-----------------------------------------+----------------------------------
       Reporter:  niles                  |         Owner:  jason, was           
                        
           Type:  enhancement            |        Status:  new                  
                        
       Priority:  major                  |     Milestone:  sage-5.0             
                        
      Component:  graphics               |    Resolution:                       
                        
       Keywords:  animate, graphics, 3D  |   Work issues:  docstrings, testing, 
think about img protocol
Report Upstream:  N/A                    |     Reviewers:                       
                        
        Authors:  Niles Johnson          |     Merged in:                       
                        
   Dependencies:                         |      Stopgaps:                       
                        
-----------------------------------------+----------------------------------

Comment (by nbruin):

 OK, I'm afraid the following if a bit of distraction of your core goal.
 Without reading any documentation, I would expect G.img() to return an
 "image object", rather than the G.save_as_bitmap("filename"). Of course
 save_as_bitmap still needs to be told in what format the bitmap should be
 saved.

 I'm not sure we have an appropriate "image object". We do have PIL in
 sage. Try `import Image`. Would it make sense to interface with their
 types for an "img" return value?

 Obviously, having a "convert to bitmap object" protocol implemented for
 all graphics-type objects, together with a save-to-file option on the
 bitmap object, would give you the required infrastructure to produce
 animations. It may not be the most efficient (or even sufficiently
 efficient) way of doing it, though ...

 I can understand if you don't want to mess with bitmap objects (whatever
 they should be) and just settle for a way to dump a bitmap representation
 of objects into a file. However, you might not want to use "img" then,
 reserving that word for when someone does want to do that.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12827#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to