TY(3PYON)Pyon manual · the Pyon app (index.html)TY(3PYON)

NAME

ty — a vertical move for an animation frame

SYNOPSIS

ty(px)

DESCRIPTION

Builds a CSS translateY for a jump, a somersault or a hop, scaled by scale() and by the reduced-motion setting of the device (a quarter of the height when the device asks for less motion).

PARAMETERS

px: the height on the open stage, in pixels; negative is upwards.

RETURN VALUE

A string such as "translateY(-95px)".

SEE ALSO

scale(3pyon), ACT(3pyon)

SOURCE

src/pyon.html, line 370

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0