Package timeside :: Module api :: Class IGrapher
[hide private]
[frames] | no frames]

Class IGrapher

source code

         object --+        
                  |        
component.Interface --+    
                      |    
             IProcessor --+
                          |
                         IGrapher

Media item visualizer driver interface

Instance Methods [hide private]
 
__init__(self, width, height)
Create a new grapher.
source code
 
set_colors(self, background=None, scheme=None)
Set the colors used for image generation.
source code
 
render(self, output=None)
Return a PIL Image object visually representing all of the data passed by repeatedly calling process() and write the image to the output if specified
source code

Inherited from IProcessor: blocksize, channels, mediainfo, post_process, process, release, samplerate, setup, totalframes

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
name()
Return the graph name, such as "Waveform", "Spectral view", etc..
source code

Inherited from IProcessor: id, uuid

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, width, height)
(Constructor)

source code 

Create a new grapher. width and height are generally in pixels but could be something else for eg. svg rendering, etc..

Overrides: object.__init__

set_colors(self, background=None, scheme=None)

source code 

Set the colors used for image generation. background is a RGB tuple, and scheme a a predefined color theme name