Method: Klear::Choreography#initialize
- Defined in:
- lib/klear/choreography.rb
#initialize(archive) ⇒ Choreography
Returns a new instance of Choreography.
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/klear/choreography.rb', line 19 def initialize archive @archive = archive @location = @archive.path #info = YAML.load(@archive.read("META-INF/kle.yml")) info = @archive.info @geometry = info['geometry'] @fps = info['fps'] || 25 @gamma = info['gamma'] || 1.0 @frames = @archive.frames end |