Method: Flms::AnimationLayerViewObject#frame_sprite_height

Defined in:
app/view_objects/flms/animation_layer_view_object.rb

#frame_sprite_heightObject

Calculate the pixel size of a single frame of animation; since animation sprites contain multiple frames stiched together vertically, the pixel height will be the image height divided by the number of frames contained within the sprite.



40
41
42
# File 'app/view_objects/flms/animation_layer_view_object.rb', line 40

def frame_sprite_height
  @layer.image_height / @layer.frame_count
end