GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
image_origo_offset(3) Arcan Lua API image_origo_offset(3)

image_origo_offset - Shift the current object rotation offset

nil
image_origo_offset( vid:dst, number:xofs, number:yofs )
image_origo_offset( vid:dst, number:xofs, number:yofs, number:zofs )

By default, the rotation origo for each object is set to its local center (0.5*w, 0.5*h).

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.

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
June 2022 image

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.