FreeBSD Manual Pages
image_origo_offset(3) Arcan Lua API image_origo_offset(3) NAME image_origo_offset - Shift the current object rotation offset SYNOPSIS nil image_origo_offset( vid:dst, number:xofs, number:yofs ) image_origo_offset( vid:dst, number:xofs, number:yofs, number:zofs ) DESCRIPTION By default, the rotation origo for each object is set to its local cen- ter (0.5*w, 0.5*h). NOTES 1 This is relative to the local object itself. For complex object hierarchies, the bounding volume would have to be calculated and each object shifted. EXAMPLE function image_origo_offset0() a = fill_surface(32, 32, 255, 0, 0); b = fill_surface(32, 32, 0, 255, 0); show_image({a, b}); move_image(a, 50, 100); move_image(b, 100, 100); rotate_image(a, 45); rotate_image(b, 45); image_origo_offset(b, -10, -10); end image April 2025 image_origo_offset(3)
NAME | SYNOPSIS | DESCRIPTION | NOTES | EXAMPLE
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=image_origo_offset&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>