Permalink
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (17 sloc) 807 Bytes
-- move_image
-- @short: Set new world-space coordinates for the specified video object.
-- @inargs: vid, newx, newy, *time*, *interp*
-- @longdescr: All move/scale/rotate transforms can be animated by specifying a relative deadline. These can be both queued and combined, letting the engine to interpolate (linearly by default) allowing for inexpensive yet smooth transitions and animations.
-- Interp can be set to any of the constants (INTERP_LINEAR, INTERP_SINE,
-- INTERP_EXPIN, INTERP_EXPOUT, INTERP_EXPINOUT, INTERP_SMOOTHSTEP).
-- @group: image
-- @cfunction: moveimage
-- @related: rotate_image, scale_image, nudge_image, resize_image
function main()
#ifdef MAIN
a = fill_surface(64, 64, 255, 0, 0);
show_image(a);
move_image(a, VRESW, VRESH, 200);
move_image(a, 0, 0, 100);
#endif
end