struct

DataDungeon::ImageKeyframe

Inherits JSON::Serializable < Struct < Value < Object

One checkpoint of an animation, at_ms after its start: only the fields that change, each reaching its value then. Between checkpoints a value glides from its neighbour (numbers in a straight line, a view or light along the shorter arc), or with held jumps at the checkpoint, for an animation that switches rather than moves. DataDungeon measures the content box at each checkpoint of an animated WebP.

Constructors

new(at_ms : Int32, held : Bool = false, view : Direction | Nil = nil, light : Direction | Nil = nil, anchor_x : Float64 | Nil = nil, anchor_y : Float64 | Nil = nil, view_x : Float64 | Nil = nil, view_y : Float64 | Nil = nil, view_z : Float64 | Nil = nil, view_roll : Float64 | Nil = nil, light_x : Float64 | Nil = nil, light_y : Float64 | Nil = nil, light_z : Float64 | Nil = nil, content_x : Int32 | Nil = nil, content_y : Int32 | Nil = nil, content_w : Int32 | Nil = nil, content_h : Int32 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

anchor_x
Source
anchor_y
Source
at_ms
Source
content_h
Source
content_w
Source
content_x
Source
content_y
Source
held?
Source
light
Source
light_x
Source
light_y
Source
light_z
Source
view
Source
view_roll
Source
view_x
Source
view_y
Source
view_z
Source
with_content(box : Tuple(Int32, Int32, Int32, Int32)) : ImageKeyframe

This checkpoint with the content box DataDungeon measured.

Source